+ 3

What is the "new" keyword in Java and what does it do?

16th Aug 2017, 3:34 PM
Gammaburst
Gammaburst - avatar
4 Respuestas
+ 4
Here's a Practical view on using the keyword "new" https://code.sololearn.com/ckJ4tFAA314i/?ref=app
16th Aug 2017, 3:46 PM
Limitless
Limitless - avatar
+ 3
It defines a new instance or object of a class. Like: Car Bugatti= new Car(); This snippet says that Bugatti is an object of the class Car.
16th Aug 2017, 3:37 PM
Dragon Slayer Xavier
Dragon Slayer Xavier - avatar
+ 2
ok thnx
16th Aug 2017, 3:42 PM
Gammaburst
Gammaburst - avatar
+ 2
thank u too limitless😊
16th Aug 2017, 3:49 PM
Gammaburst
Gammaburst - avatar