+ 3

What is the difference b/w scanner and DataInputStream in java?

In how many ways we can take user input in java ??

23rd Dec 2016, 3:08 PM
Aman gautam
Aman gautam - avatar
2 Réponses
+ 1
DataInputStream reads a primitive type as a sequence of bytes (i.e the Native representation of the type) whereas Scanner is a character oriented reader
30th Dec 2016, 4:15 PM
Suvaditya
Suvaditya - avatar
0
Pretty sure a scanner object is a listener where datainputstream is a type of buffer. not 100% on that though
29th Dec 2016, 6:59 AM
Chris Reinken
Chris Reinken - avatar