ProAnswers.org

Is String a class or data type in java?

String is a class in java.lang package. But in Java, all classes are also considered as data types.So we can take String as a data type also.