Stephan van Hulst wrote:Harikrishna, I don't wish to be rude, but what have you done so far to study Java? Have you gone through the Oracle tutorials, read any books on Java?
I think you would benefit a lot from doing some proper studying, before you ask all these questions.
None of the question is small or worthless.Sometimes we get even confuse in addition-subtraction questions.
If your friend is asking something then he must having a problem understanding the same.
So instead giving excuse,it will be better to provide him solutions or any link that will help your friends.