Podcast
Questions and Answers
Which keyword is used to declare Class variables and class methods?
Which keyword is used to declare Class variables and class methods?
- static (correct)
- public
- private
- package
What operator creates an object and returns its reference?
What operator creates an object and returns its reference?
- assignment (=)
- dot (.)
- new (correct)
- colon (:)
Which type of method can be called without creating an instance of a class?
Which type of method can be called without creating an instance of a class?
- Class method (correct)
- Constructor method
- Instance method
- All of these
What refers to more than one method having the same name but different parameters?
What refers to more than one method having the same name but different parameters?
Which method is invoked automatically with the creation of an object?
Which method is invoked automatically with the creation of an object?
Which keyword is used to refer to a superclass constructor in a subclass constructor?
Which keyword is used to refer to a superclass constructor in a subclass constructor?
Which method of a Java class is invoked automatically with the creation of an object?
Which method of a Java class is invoked automatically with the creation of an object?
What is the keyword used in Java to call the constructor of the superclass in the constructor of a subclass?
What is the keyword used in Java to call the constructor of the superclass in the constructor of a subclass?
How many levels of visibility are used to protect a method or variable from unauthorized reference in Java?
How many levels of visibility are used to protect a method or variable from unauthorized reference in Java?
In Java, what component generally makes up a class?
In Java, what component generally makes up a class?
Which operator in Java allows access to instance variables and instance methods?
Which operator in Java allows access to instance variables and instance methods?
What differentiates a Constructor from a general method in Java?
What differentiates a Constructor from a general method in Java?