+ 3
Why the type string is declared as 'String' not 'string'?
Why string type declaration not starts with small letter like int,char,float?
9 Answers
+ 8
String is a class in java..al classes wil be startng wit capital letter.
+ 8
int ,bool,double etc. are primitive type in Java but String is a object.And object names start with Capital letter.
+ 1
Bcz String is a class and in Java class is star with capital letter so we use it String not as string
+ 1
in java class name first letter should be capital and String is class
0
Ù
۳ۧۧÙÙ۱ۯ
0
because java is a case sensitave language .
0
Because it's a Class
0
because it is keyword s
0
Because String is finction in java script and which act as class. And as per class naming convention it is "String" not "string".