Java - Classes and Objects
What does the
new keyword do when creating an object in Java?new keyword do when creating an object in Java?new keywordnew keyword in Java is used to allocate memory for a new object and then call the constructor to initialize it.new. Only memory allocation and constructor call happen.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions