+ 3

Challenge question.

Why is the answer to this java.io and not java.util? I'm pretty sure that it is wrong. Does the question mean something else? https://www.sololearn.com/post/258167/?ref=app

4th Mar 2020, 2:12 PM
Avinesh
Avinesh - avatar
7 Antworten
4th Mar 2020, 6:35 PM
Odyel
Odyel - avatar
+ 2
am sure you know that io means input and output right
4th Mar 2020, 4:04 PM
✳AsterisK✳
✳AsterisK✳ - avatar
+ 2
✳AsterisK✳ yes I do.
4th Mar 2020, 4:43 PM
Avinesh
Avinesh - avatar
+ 1
Java.io package provides classes for system input and output through data streams, serialization and the file system.... Whereas Scanner is a class in java.util package for obtaining inputs of primitive types like int, double, strings etc.....
6th Mar 2020, 10:05 AM
sarada lakshmi
sarada lakshmi - avatar
+ 1
Obviously it's java.util package from my view
6th Mar 2020, 10:45 AM
sarada lakshmi
sarada lakshmi - avatar
0
sarada lakshmi that is a known explanation. But you did not mention which option suits the best for that quiz question.
6th Mar 2020, 10:36 AM
Avinesh
Avinesh - avatar