Question 1
Which of the following is NOT an OOP concept in Java?
Encapsulation
Inheritance
Polymorphism
Compilation
Question 2
What is an object in Java?
A class template
An instance of a class
A function
A primitive data type
Question 4
What is a class in Java?
A data type
A blueprint for objects
A collection of methods
A single method
Question 5
What is the correct way to define a class in Java?
public Example {}
class Example {}
void Example {}
object Example {}
Question 6
What does this keyword refer to?
Current object
Parent class
Static method
Return type
There are 7 questions to complete.