What Will Be The Default Values Of All The Elements Of An Array Defined As An Instance Variable

What Will Be The Default Values Of All The Elements Of An Array Defined As An Instance Variable


  • 29 Dec, 2011

    Example: All the elements of an array of int will be initialized to 0(zero), while that of boolean type will be initialized to false. Whereas if the array is an array of references (of any type), all the elements will be initialized to null.

    Comments Received:
    Please give your suggestions and feedback:

2009-2016 downloadmela.com. All rights reserved.