Home » JAVA Programming » Object & Classes » Question
  1. Which of the following is a valid declaration of an object of class Box?
    1. Box obj = new Box;
    2. new Box obj;
    3. obj = new Box();
    4. Box obj = new Box();
    5. None of these
Correct Option: D

Box obj = new Box();



Your comments will be displayed only after manual approval.