English

State True or False. Keyword default is used to allocate memory to an object.

Advertisements
Advertisements

Question

State True or False.

Keyword default is used to allocate memory to an object.

True or False
Advertisements

Solution

This statement is false.

Explanation:

The default keyword is used in switch statements or for default values, not for memory allocation. The new keyword is typically used to allocate memory to an object.

shaalaa.com
  Is there an error in this question or solution?
Chapter 1: Revision of Class 9 Syllabus - Exercises [Page 44]

APPEARS IN

Rupa Pandit Computer Applications [English] Class 10 ICSE
Chapter 1 Revision of Class 9 Syllabus
Exercises | Q 2. (ii) | Page 44
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×