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]
