answersLogoWhite

0

It depends on the context, but generally read() will return a single byte of data from a Reader or InputStream, while readLine() will read characters from a Reader until a newline is found.

and this method is deprecated now.and this is a method of DataInputStram class

User Avatar

Wiki User

14y ago

Still curious? Ask our experts.

Chat with our AI personalities

FranFran
I've made my fair share of mistakes, and if I can help you avoid a few, I'd sure like to try.
Chat with Fran
ReneRene
Change my mind. I dare you.
Chat with Rene
RafaRafa
There's no fun in playing it safe. Why not try something a little unhinged?
Chat with Rafa

Add your answer:

Earn +20 pts
Q: What is the difference between read and readline in java?
Write your answer...
Submit
Still have questions?
magnify glass
imp