Which of the following is done by the new operator to instantiate a class?
Allocating memory for a new object
Deallocating memory for a new object
Reallocating memory for a new object
Creating a new object
Which of the following is not an access specifier?
Private
void
protected
default
Which method sets/changes the value of a data member of a class?
getter method
setter method
default method
none of these
Which access specifier allows the variables or method access only within a class?
Public
Protected
Default
Which of the following is a logical group of related classes?
collection
package
interface
Which of the following members can be accessed only within the same package?
public
private
Which of the following can be a constructor's name?
Object name
Method name
Variable name
Class name
Which is a method that returns the value of a data member of the class?
Public method
Accessor method
Default method
Which of the following is the name in which variables of a class type known as?
Object
method
Datatypes
Class variables
Which of the following is used to invoke methods?
New operator
conditional operator
Dot operator
Arithmetic operator