Java keywords and syntax tutorial


new keyword

new keyword in java will use to initialize objects from its class. for the object initialization, the new keyword will use the constructor of a class. When creating objects, it will allocate memory in java heap.

Human human = new Human();

<< Java final keyword      Java Collections Framework >>