+ 1

why the string input is different from other in starting

Why we take String capital in starting "String name=System.in.next()" while other have "int roll=System.in.nextInt()"

5th Feb 2017, 5:48 AM
Ashwin George
Ashwin George - avatar
2 Réponses
+ 7
int is a primitive data type where as String is not a primitive data type. It is a class, like Integer, Float, Double, etc.
5th Feb 2017, 7:21 AM
Saumya
Saumya - avatar
0
becase of all chars
6th Feb 2017, 7:10 AM
Ahmed Osman
Ahmed Osman - avatar