+ 3
The new keyword is used for all memory allocations in Java. Basically, any time you want to instantiate an object that isn't a primitive type you'll need to use the new keyword. It just tells the JVM you want some memory for an object.
11th Jan 2017, 4:13 AM
James Durand
James Durand - avatar