Computer Science, asked by anuj5071, 1 year ago

Is string data type in Java? What is non primitive and primitive data type?

Answers

Answered by mathcrackernishant
3
HEY MATE HERE'S YOUR ANSWER
String is a class in Java but can be used as a primitive data type.
Primitive data types are those data types which are pre-defined in Java library.
example:- int,char,double,etc.
Non-primitive data types are those which are created by user.
example:- String, class name, array,etc.
HOPE IT HELPS YOU
Similar questions