0

Is 'String' different from 'string'?

23rd Oct 2016, 4:40 AM
Amogh Batwal
Amogh Batwal - avatar
4 Answers
+ 4
Java is case sensitive, therefore String, with a capital, is a keyword recognized and reserved for Java API. string with a lower case Is not reserved therefore may be used as a separate variable, but will not function as the correct character setting for the proper method.
25th Oct 2016, 2:08 AM
nathan
nathan - avatar
+ 1
string and String are different as java is case sensitive and String is a reversed keyword for java.
26th Oct 2016, 1:54 PM
Souhardya
Souhardya - avatar
0
Yes 'String' is different from 'string' 'String' is java key word and it's declare String type string != String AS java is Case sensitive
24th Oct 2016, 1:59 PM
karapet kuzikyan
karapet kuzikyan - avatar
0
In Java String is a class but not a data type that's why we write String but not "string" also java is case sensitive.
25th Oct 2016, 6:13 PM
Ahmar Mughal
Ahmar Mughal - avatar