![Mcqmate logo](https://mcqmate.com/images/logos/logo-black.png)
![Mcqmate logo](https://mcqmate.com/images/logos/logo-white.png)
McqMate
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(); |
View all MCQs in
Java ProgrammingNo comments yet