Jump to navigation Jump to search
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.
<JavaType> <variable> =
LinkedList list = new LinkedList(); int intArray = new int; String stringMatrix = new String;