How Many Objects Are Created In The Following Piece Of Code?

How Many Objects Are Created In The Following Piece Of Code?


  • 29 Dec, 2011

    MyClass c1, c2, c3; c1 = new MyClass (); c3 = new MyClass ();Only 2 objects are created, c1 and c3. The reference c2 is only declared and not initialized.

    Comments Received:
    Please give your suggestions and feedback:

2009-2016 downloadmela.com. All rights reserved.