Advertisements
Advertisements
Question
Class is a composite data type.
Options
True
False
MCQ
True or False
Solution
This statement is True.
Explanation:
A class is classified as a composite data type in Java because it can include several fields (variables) of various data types and method calls. A composite data type can carry numerous values or a combination of values of different types, as opposed to basic data types, which can only hold one value.
shaalaa.com
Is there an error in this question or solution?