To what value is a variable of the String type automatically initialized

The default value of an String type is null.

Showing Answers 1 - 11 of 11 Answers

Sushant Singh Sengar

  • Sep 16th, 2005
 

well string class objects are NULL by default only if they are defined as class level atttributes, otherwise string objects don't have any default value they need to be explicity initialized.

Deepti

  • Oct 1st, 2005
 

    

to hide the super class members functions

  Was this answer useful?  Yes

pankajrg

  • May 12th, 2008
 

We use overriding when method avaliable in super class doesnot satisfyour requirement.
That is

To extend the alreadyavailable feature wew use overloading.
If we require the new functionality other than, what we already have we go for Overriding.

  Was this answer useful?  Yes

Just to reuse the code in a new way.  It helps by not making the
correction in the superclass instead of that just simply changing the body of
method without changing the signatures of that method.


  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions