All the primitive types in Java are lowercase except string, which is written as “String”. Can anyone tell me why is it like that?
The reason is String is not a primitive data type. It’s a class which is used as a reference type.
Interested in Java? Check out this Java Certification by Intellipaat.