Q.

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. Box obj = new Box();
820
0
Do you find this helpful?
6

View all MCQs in

Java Programming

Discussion

No comments yet