Advertisements
Advertisements
Question
Which of the following is user defined data type?
1. array |
3. class |
2. double |
4. boolean |
Options
only 1
1 and 3
only 2
only 4
MCQ
Advertisements
Solution
1 and 3
Explanation:
Arrays and classes are user-defined data types in Java. Both can be defined by the user and hold multiple data elements.
shaalaa.com
Is there an error in this question or solution?
