What is the function of new

i dont undestand the function of new …

first result of a google search:

https://docs.oracle.com/javase/tutorial/java/javaOO/objectcreation.html

very useful information, so new is just part of Java syntax to create an object (instance of a class)

2 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.