English

Keyword that helps in allocating memory to an objects is ______.

Advertisements
Advertisements

Question

Keyword that helps in allocating memory to an objects is ______.

Options

  • private

  • new

  • class

  • public

MCQ
Fill in the Blanks
Advertisements

Solution

Keyword that helps in allocating memory to an objects is new.

Explanation:

In Java, the new keyword is an operator that dynamically allocates memory on the heap for a new object or array at runtime.

shaalaa.com
  Is there an error in this question or solution?
Chapter 2: Class as the Basis of all Computation - Exercises [Page 64]

APPEARS IN

Rupa Pandit Computer Applications [English] Class 10 ICSE
Chapter 2 Class as the Basis of all Computation
Exercises | Q 1. (viii) | Page 64
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×