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;
This question was addressed to me in a job interview.
Query is from Class Fundamentals & Declaring objects topic in portion Classes and Methods of Java