I was wondering, why is it "String" and not "string" when all other primitive data types are lowercase?
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.
It's not a primitive, the String class is an object.
http://download.oracle.com/javase/6/docs/api/java/lang/String.html
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With