Computer Science, asked by CVAM37, 6 months ago

What is the significance of using the word 'new' while creating an object. *

1 point

Creates dynamic memory

Creates static mamory​

Answers

Answered by Anonymous
8

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.

Similar questions