new is a Java keyword. It creates a Java object and allocates memory for it on the heap . new is also used for array creation, as arrays are also objects.
Read moreWhat are the types of methods in Java?
In Java, there are two types of methods:
Read more