Which Is Correct Syntax #165
Which is correct syntax?
This multiple choice question (MCQ) is related to the book/course gs gs111 OOP Object Oriented Programming Java. It can also be found in gs gs111 Constructors and Destructors - OOPs MCQ: Overloading Constructors - Quiz No.2.
Which is correct syntax?
classname objectname= new() integer;
classname objectname= new classname;
classname objectname= new classname();
classname objectname= new() classname();