Multiple Choice
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;
Correct Answer:

Verified
Correct Answer:
Verified
Related Questions
Q8: Identify the type of inheritance when two
Q9: The keyword used inside a class to
Q10: If a class inheriting an abstract class
Q11: Which of these keywords are used to
Q12: Which of the following is true in
Q14: The use of final keyword with method
Q15: Which class cannot have a subclass in
Q16: Which of these access specifiers must be
Q17: Which of the following is a method
Q18: The keyword used to create an object<br>A)class<br>B)this<br>C)new<br>D)malloc