+ 3
What is the difference b/w scanner and DataInputStream in java?
In how many ways we can take user input in java ??
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
0
Pretty sure a scanner object is a listener where datainputstream is a type of buffer. not 100% on that though