Java - Classes and Objects
Which of the following is the correct way to create an object of class
Car in Java?Car in Java?new keyword followed by the class name and parentheses.new Car() correctly with proper capitalization and assignment. Others have syntax errors or wrong capitalization.new ClassName() to create objects [OK]15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions