0

What does the new keyword actually do in java

I am learning java but not able to understand what does the new keyword mean.

2nd Jun 2018, 6:19 AM
Rohit
Rohit - avatar
3 ответов
0
It creates a new instance of an object. That object is empty at the time of creation...
2nd Jun 2018, 7:10 AM
Jiří Bočan
0
it calls the consturctor of that class and returns the object
2nd Jun 2018, 11:38 AM
T0nd3