+ 1

Please, why will the data input from a user have a default data type of string?

(*removed java tag)

7th May 2020, 5:30 PM
Kelechi Ikpo
5 Respostas
+ 4
Because that is how they programmed it. It won't be fixed that user will enter string or number, so as common type they use string later if you need you can change it to integer.
7th May 2020, 5:33 PM
Raj Chhatrala
Raj Chhatrala - avatar
+ 1
It's not the same in java.. You can take any type directly from the input as needed.. So it's not apply to java .. Why the tag java there?
7th May 2020, 5:38 PM
Jayakrishna 🇮🇳
0
Ok. Thank you.
7th May 2020, 5:35 PM
Kelechi Ikpo
0
Jayakrishna Well noted. Thank you for this clarification.
7th May 2020, 5:40 PM
Kelechi Ikpo