What Will Be The Initial Value Of An Object Reference Which Is Defined As An Instance Variable

What Will Be The Initial Value Of An Object Reference Which Is Defined As An Instance Variable


  • 29 Dec, 2011

    The object references are all initialized to null in Java. However in order to do anything useful with these references, you must set them to a valid object, else you will get NullPointerExceptions everywhere you try to use such default initialized references.

    Comments Received:
    Please give your suggestions and feedback:

2009-2016 downloadmela.com. All rights reserved.