New keyword | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

New keyword

usage of new keyword

21st May 2018, 10:51 AM
Rahman Rezaie 🇦🇫
Rahman Rezaie 🇦🇫 - avatar
1 Answer
+ 4
A quick google search gave me this: "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. ... JavaProgramming/Creating Objects."
21st May 2018, 10:53 AM
Ulisses Cruz
Ulisses Cruz - avatar