Which of the following can be a constructor's name?
Object name
Method name
Variable name
Class name
Which is the least restrictive access modifier?
public
private
protected
default
Which of the following operator is used to create objects along with the class constructor?
Arithmetic operator
Conditional operator
New operator
Dot operator(.)
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
How many primitive data types are there in java
7
8
5
6
From where do object receive their storage.
Stack memory
Heap memory
Hash memory
Queue
Which of the following is used to invoke methods?
conditional operator
Dot operator
What is the class containing main method termed as?
appplication
package
interface
polymorphism
Which of the following is a logical group of related classes?
collection
none of these
Which of the following is the name in which variables of a class type known as?
Object
method
Datatypes
Class variables