+ 1
Why the 's' is capital in 'String' ?
6 odpowiedzi
+ 1
Because it is defined in a class
Am I right?
+ 5
because it is a class, and it is common programming style to make the first letter of a class uppercase.
+ 2
yes , usually objects created have uppercase first letters as well, however not always. the out in System.out is an object that does not follow this style.
+ 1
so, I can say that the same reason is for capital of s in 'System' .
+ 1
System.out is a variable, so it follows naming convention
+ 1
it is a class name, so S is capital, in System.out.println(),, out is static variable of type PrintStream , and println() is a method present in PrintStream class.