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:A
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;
Explanation: None.