enchance enchance - 1 year ago 108
Java Question

String datatype in java

I was wondering, why is it "String" and not "string" when all other primitive data types are lowercase?

Answer Source

String isn't a primitive datatype - it's a class, a reference type. Now admittedly it's supported directly in the VM, and there are literals in the language - but it's still not a primitive type.