+ 1
Why Java is a camel case language?
It is very difficult to understanstand to know as it is desined by the creater,,,,James Gosling..
4 odpowiedzi
+ 2
becausethisisdifficulttounderstand ButThisIsEasierToComprehend
+ 4
Java is a camel case language because it treats both upper and lower case letters distinctively
+ 4
Ex-Tree
tree
Both will be treated differently in java
+ 2
Sandip Maitra
Java is not a camelCase language. It is just a rule to define variable/method and it is very simple to understand this.
We use camelCase when we combined two or more word together to make a variable.
For example Hello and World are two different word so if you want to make a variable of these two words then you have to use camelCase
String helloWorld = "Hello World";
But you can also write like this helloworld there is no issue but it will look like it's a single word which is not.
Compiler will never give error if you don't use camelCase. It is just to understand better what are you doing in your code.
Like you apply CSS in html for look and feel same like that James Gosling added some rules in Java to understand your code better.
For example -
1 - class name should start with Capital letter
2 - variable name should be in small but if you combine two or more words together then it should be camelCase
3 - method name should start with small letter but should be camelCase.
And many more