In Java, we can create new objects of a class by using new operator. The new operator creates an instance of a class and returns the reference of the new object.

For ex-

Movie mov = new Movie();

This statement creates an instance variable of the Movie type named mov.

Advertisements