+ 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()"
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.
0
becase of all chars