Advertisements
Advertisements
प्रश्न
Which of the following is a non-primitive data type?
पर्याय
int
double
char
String
MCQ
उत्तर
String
Explanation:
A string is a non-primitive data type in Java. It is a class that allows String objects to store character sequences. Non-primitive data types (sometimes referred to as reference types) are more complicated than primitive types and may contain classes, arrays, and interfaces.
shaalaa.com
या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?