Why every class name starting with capital but the class is not starting with capital | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

Why every class name starting with capital but the class is not starting with capital

For. E.g. Scanner,System,String etc. These are class name and their first positon is start with capital letter else it shows error bit when we create or make program we do not take the class as capital i.e. class its c word is not capital Gaurav Agrawal ‎ ‏‏‎Sreejith  Helga

14th Nov 2018, 3:16 PM
Harsh Agrawal
Harsh Agrawal - avatar
3 Answers
+ 20
Harsh Agrawal its just a naming convention for getting clear idea of some name is a class name OR not , just for better and clear representation of program
17th Nov 2018, 4:42 AM
Gaurav Agrawal
Gaurav Agrawal - avatar
+ 6
Java has a naming convention that programmers are expected to follow. https://www.geeksforgeeks.org/java-naming-conventions/
15th Nov 2018, 1:32 AM
John Wells
John Wells - avatar
+ 1
class is a keyword that's why it should be in small case
14th Nov 2018, 3:31 PM
Adarsh.n. Bidari
Adarsh.n. Bidari - avatar