1.

Which of the following is a valid declaration of an object of class Box?(a) Box obj = new Box();(b) Box obj = new Box;(c) obj = new Box();(d) new Box obj;

Answer» Correct choice is (a) Box obj = new Box();

Explanation: None.


Discussion

No Comment Found

Related InterviewSolutions