LPU Java Unit 2 Lecture 11 MCQ Class and Object RB | LPUCOLAB

LPU Java Unit 2 Lecture 11 MCQ Class and Object RB | LPUCOLAB

LPU_Java_Unit 2_Lecture 11_MCQ_Class and Object_RB

1. What is a class in Java?

Answer:
Blueprint for objects


2. Which of the following is the correct way to declare an object of class Car?

Answer:

Car newCar = new Car();

3. In Object-Oriented Programming, programs are divided into

Answer:
Objects