What is the use of new keyword?

The Java new keyword is used to create an instance of the class. In other words, it instantiates a class by allocating memory for a new object and returning a reference to that memory. We can also use the new keyword to create the array object.

For More Information Please Refer: https://www.javatpoint.com/new-keyword-in-java