OOPS in Java MCQs Exercise II

Ques 1 OOPS


What is use of this keyword in Java Programming?

A to call the constructor of the parent class
B To refer the instance variable
C for calling constructor of another class
D All of these

Ques 2 OOPS


Review the code below:
class Employee {
  String name;
  String empId;
  static String company;
}
Select the correct statement

A Employee class has 3 instance variables
B Employee class has 3 local variables
C Employee class has 2 instance and 1 class variable
D Employee class has 1 instance and 2 class variable

Ques 3 OOPS


_________a variable provides access to the object and helps in invoking its member in Java?

A reference
B local
C instance
D class