0

Strings or strings?

If I am not mistaken Java is a case sensitive language. But in c++, I've seen string being declared using small 's'. In all the beginner java examples shown here, in starting modules, the strings start with a capital s. This is same with System.out.print() Is this just a typing error in the app or am I going somewhere wrong?

16th Sep 2017, 3:52 AM
Siraz Naorem
Siraz Naorem - avatar
3 ответов
+ 4
The 's' needs to be in caps. String. In java, all (or most) Objects (as per convention) use CapsCase
16th Sep 2017, 3:57 AM
Rrestoring faith
Rrestoring faith - avatar
0
Hey! Thanks.
16th Sep 2017, 3:58 AM
Siraz Naorem
Siraz Naorem - avatar
0
actually, entire java, String is a class. import from java.lang package. so that's why String started with capital letter. String type array, String class, StringBuffer class and more... more information, visit java by ratan String manipulation on YouTube. thank you.
16th Sep 2017, 10:19 AM
meherDev
meherDev - avatar