+ 6

Why String in java is the only data type which starts with a capital letter?

25th Feb 2017, 10:03 AM
Bukuru Henry
Bukuru Henry - avatar
4 odpowiedzi
+ 20
Because it is a class and not a primitive data type....
25th Feb 2017, 10:06 AM
Valen.H. ~
Valen.H. ~ - avatar
+ 7
According to camel convention class name starts with capital letter
25th Feb 2017, 12:27 PM
Bharath yadav
Bharath yadav - avatar
+ 3
Because string is not a primitive data type is a built in class
25th Feb 2017, 12:25 PM
Bharath yadav
Bharath yadav - avatar
0
Integer starts with a capital letter too. Boolean or Double too. int doesnt start with a capital letter because int is a primitive data type. It has not any functions.
25th Feb 2017, 11:31 AM
Hermann Set
Hermann Set - avatar