+ 2

Why the new keyword is used?

Why the new keyword is used in scanner class,at the time of declaration of an array?

19th Oct 2017, 5:15 PM
sumit kumar dash
sumit kumar dash - avatar
1 Resposta
+ 2
It's to instantiate an object from a class. Think of it as making a "new" object from a class.
19th Oct 2017, 5:42 PM
AgentSmith