$ 0 0 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.