enchance enchance - 3 months ago 18
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

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.