Just wondered why some variables stated from capital letter in Java.
int num; String result;
Just wondered why some variables stated from capital letter in Java.
int num; String result;
Based on this archived article of Java's API, String is a Class and, because of the Naming conventions, it Starts with Capital Letter.
In the other hand, int, is considered a primitive type and, because of that same link, it starts with lower letters.
Similar behavior can be seen in long and Long type and Class, respectively, or float and Float.