Computer Science, asked by wency, 7 months ago

what is the importance of new keyword while declaring a object​

Answers

Answered by shrutikhot
2

Answer:

The Java new keyword is used to create an instance of the class. In other words, it instantiates a class by allocating memory for a new object and returning a reference to that memory. We can also use the new keyword to create the array object.

hope this will help you....please Mark me as Brainlest....and follow me

Answered by Crazytanisha03
1

Answer:

The Java new keyword is used to create an instance of the class. In other words, it instantiates a class by allocating memory for a new object and returning a reference to that memory. We can also use the new keyword to create the array object.

Explanation:

please sub my youtube channel for this help name is ad vlogs challenges

Similar questions