) The new operator creates a single instance named class and returns a reference to that object. what does this mean

) The new operator creates a single instance named class and returns a reference to that object. what does this mean

The new operator instantiates a class by allocating memory for new object and returning a reference to that memory. The new operator also invokes the object constructor.
The new operator dynamically allocates memory for an object. It has this general form:
class-var = new classname( );
The reference returned by the new operator does not have to be assigned to a variable.
The answer is that Java\'s simple types are not implemented as objects. Rather, they are implemented as \"normal\" variables

By:Sumit Tripathi
Date:2026-05-15 00:00:00

Post Your Answers


User Email:

User Name:
Answers:

Related Java Subjective Links

Java Subjective interview questions and answers for experienced and fresher