Sunday, December 9, 2007

Why Interface is 100% abstraction.

I always had confusion between Interface and abstract class and also that “AN INTERFACE IS 100% Abstraction”. Yesterday I was reading SCJP Certification Guide so I understand why an Interface is 100 % Abstraction and what’s the other differences between them. So I just like to share with you people, although many of you are well known about this before.

When you create an interface, you're defining a contract for what a class can do, without saying anything about how the class will do it.




Think of an interface as a 100-percent abstract class. Like an abstract class,

an interface defines abstract methods that take the following form:

abstract void bounce(); // Ends with a semicolon rather than

// curly braces

But while an abstract class can define both abstract and non-abstract

methods, an interface can have only abstract methods. Another way interfaces differ from abstract classes is that interfaces have very little flexibility in how the methods and variables defined in the interface are declared. These rules are strict:

1. All interface methods are implicitly public and abstract. In other words, you do not need to actually type the public or abstract modifiers in the method declaration, but the method is still always public and abstract.

2. All variables defined in an interface must be public, static, and final

in other words, interfaces can declare only constants, not instance variables.

3. Interface methods must not be static.

4. Because interface methods are abstract, they cannot be marked final,

strictfp, or native.

5. An interface can extend one or more other interfaces.

6. An interface cannot extend anything but another interface.

7. An interface cannot implement another interface or class.

These are some strictly rolls apply on an Interface. Hope it will help you to understand Interface.

Sunday, August 19, 2007

The concept of Al-Hayah (Modesty)

To day I want to discuss a very important topic with all of you because nowadays it appear to me that everyone has forget about the importance of this characteristic of a Muslim. Actually yesterday I was reading a book of hadith and I read a hadith regarding Haya and then I felt the importance of it.

Abu Mas’ud ‘Uqbah bin Amr al-Ansari al Badri, radiyallahu anhu, reported that the Messenger of Allah, sallallhu alayhi wasallam, said:

Amoung the things that people have found from the words of the previous prophets was: if you feel no shame, then do as you wish.” [Al-Bukhari]

Haya can be translated as: modesty, shame, shyness.

Actually the word Haya was drived from the word “al-hayah” which means life that’s why scholars says a person who has no Haya(shame or modesty) is alike dead person.

Islam encourages modesty. It is one of the most important characteristic of every Muslim.

There is so many other hadith which is related to this and I want to quote few of them.

“Al-Haya (Modesty) is part of Iman (faith)”.

“Haya does not produce but goodness”. [Recorded by al-Bukhari and Muslim]

Ibn Rajab pointed out according to the early scholars of Islam that, if you have no modesty, then do whatever you wish and Allah will punish you for what you do. This mode is used by the quran in Surah Fussilat: ayat 40.

Haya (modesty) is one of the most important factors of a person which keeps him/her away from the sinful acts. If a person has no Haya he will do almost every thing without thinking that his act is a good or bad.

Unfortunately today due to misuse of technology (Media) this great concept is endangered. A very common sentence used among us that media provides Entertainment.

Entertainment is taking destructive direction which is affecting the concept of Haya negatively. Every one knows that because of this entertainment the chances of committing sins are very higher and the chances of neglecting obligations are higher as well. Because most of the elements of this new entertainment are crime, suspicious acts and adultery assorted together.

Actually we are abusing modesty through many ways not only by the misuse of media, for example at one side we Muslims are buying media material from the west and we all knows that the west is researching on Qur’an and on the seerat (character) of our beloved prophet Mohammad (sallallhu alayhi wasallam) as well but we are not looking at this. We are not getting the good acts of west which they have.

Sometime we know very well that a person is telling us something good but we don’t admit it because of our ego, so this is another example of abusing Haya. I personally think that there shouldn’t be any shame to accept our wrong acts because if you start accepting it and you don’t cause of your ego, so InshaAllah one day you will correct it as well.

According to the meaning of another hadith which shows us the importance of Haya is:

Haya (modesty) and Iman (faith) are linked. When there is iman, there is haya and if one is lifted, the other is also lifted. All of us born with natual Haya.

So we should try to understand the importance of Haya and keep practice it, but remember that Haya cannot be used as an excuse for not doing good deeds and acts.

May Allah guide us towards the right path and give us tufeeq to understand Qur’an and Hadith.

Thursday, August 16, 2007

Under This Flag we are one.... Really are we one under this flag...??

Today is 17th of August, as a Pakistani we have celebrate our independence every year14th of August . This was the 60th time that we celebrated this day. 60 Years ago millions of Muslims migrated from Hindustan for the sake of God as they all said and we are still reading these statements in our academic books and in articles. Here i want to share a picture of a woman who was migrating from India to Pakistan.












INDIA, 1947 -- A grieving Muslim mother holds her child while hugging a family member at the gravesite of her 4-year-old child who died of starvation when their Pakistan special train was stopped for four days by Sikh attacks during their migration from India to Pakistan.
50701969, Getty Images.

See this picture and this mother who left everything which she had just for the future of her children that they will open their eyes in an Islamic state where they will perform the actual practice of a Muslim (A Muslim is a person who submits his will to Allah - the Almighty God.)
and their hearts will be free form the fare of any non-Muslim or Government, that none can stop them to sacrifice a cow for the sake of God. Another reason was that, they thought after British rule the Hindus will take over and the Muslims will remain the same and they can't develop themselves. and do you want to see our development after 60 bright years as per statement of our beloved leaders. Please have a look of our development.

Many people say that we are nuclear power, i just want to ask those peoples who proud on it, was that really our will or we have to do this development due to our worse enemy (India). I think that it is our own achievement but credit should goes to India. we are making nuclear weapons but we cant sale it, our children can't study about nuclear and after all this we say we are independent..are we??

Lets go back to the history when the Muslims of south east Asia thought to have a separate country, what were the causes due to that they thought so. I believe that very strong point of view was 2nation theory (Hindu and Muslims are two different nations their culture is different their language is different), before the partition of Hindustan if we see the history of 12 or 13 centuries back so we will notice that during this period Muslim were the ruled around 1000 years on Hindustan for example (Mughals, Nizaams,Orangzeeb) and so many are they great heroes of our bright past, although at that time the population of Muslim were not that much as we had in 1900. During this 1000 years wasn't these different 2 nations that time...?? wasn't Muslims ruled...?? I think that the Muslims of 1900 or who were involve in this moment of Pakistan, their Emaan was weak they left to depend on the mercy of Allah.

May Allah show us the right path and give us guidance to walk on it and no doubt that he has the best knowledge.

Please leave your comments. whatever you think about 60 years Pakistan.

Tuesday, February 13, 2007

A man of computing can run an Enterprise utmost But a man of Economics has ability to run a Country.

I belive that every country’s Prime Minister should be an Economist.


What Do You think…….??

Friday, February 9, 2007

Surah an-Nur verse 31 reads


And say to the faithful women to lower their gazes, and to guard their private parts, and not to display their beauty except what is apparent of it, and to extend their headcoverings (khimars) to cover their bosoms, and not to display their beauty except to their husbands, or their fathers, or their husband's fathers, or their sons, or their husband's sons, or their brothers, or their brothers' sons, or their sisters' sons, or their womenfolk, or what their right hands rule (slaves), or the followers from the men who do not feel sexual desire, or the small children to whom the nakedness of women is not apparent, and not to strike their feet (on the ground) so as to make known what they hide of their adornments. And turn in repentance to God together, O you the faithful, in order that you are successful.

In my Introduction to Islam, I briefly dicussed the issue of hijab, the Islamic dress for women. In that article I made a couple of points:

1) The Western culture seems to be obsessed with a very narrow ideal of feminine beauty, and women are derogated if they do not match this ideal. Many women spend hours each day picking just the right outfit and styling their makeup and hair before they will even step out of the house. Any feminist will tell you this obsession with women's beauty and sexuality is bad for women and should be ended. Isn't modest dress a good way for a woman to get off this merry-go-round and to tell people that they will have to judge her by her intelligence, personality, and character, not her appearance?

2) When men dress to be respected, they wear a business suit that covers them to throat, wrist, and ankle, and they keep their hair simple and plain. When women dress to be respected, shouldn't they also cover to throat, wrist, and ankle, and make sure that their hair is not a decoration? Clearly, men are not expected to play the "beauty game". If women want equality with men, shouldn't they take the same attitude to dress that men do?

These are reasons that hijab is appealing to women, any why a woman might choose to dress like that even without looking at the religious aspects.

Reference:

www.muhajabah.com/dresslikethat.htm

Tuesday, January 30, 2007

I Am Back Here to See You