answersLogoWhite

0


Best Answer

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
This answer is:
User Avatar

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
Related questions

What is the difference between readline and readkey?

Read key is able to read one char symbol aka key. Read is able to read many symbols for one time, it reads up to that moment when it finds new line symbol or other specific manipulation instructions.


What is the difference between a readline statement and a writeline statement?

The readline statement method of programming will allow for the next statement in the sequence to be read. The writeline method of programming only allows for the current statement or sequence to be read after determining the end of the last line.


How read xml file in java?

Java provides several XML Parsers like DOM, SAX or JDOM and API javax.xml.parsers by using those we can easily read xml files in Java. DOM is quickest and easiest way to read XMlL file in Java.


Can vista read java?

Yes. Due to Java being an interpreted language, almost any system can read it. In fact, I'm running vista with java right now.


What is the difference between File Reader and FileInputStream in java?

FileReader used to read the character stream in the file.i.e a file that contanis only the character means FileReader is the choice to read the file.On the other hand if the file contains image,byte like raw data format means FileInputStream is the choice to read the data in the file,.


Write a statementin a java program to read 2 integers and dispay the number of interagers between them?

a=153 a=n%10;


How you use java?

Hi You should read Java API , there is every thing that you need.


What is the difference between aerobic and anaerobic treatment of waste materials?

The difference is that ,,,You have to read the book!


What is java bar code reader?

Java barcode reader is barcode reader in java applications which can read out the information encoded in the barcode.


What is the primary difference between an annuity and a compound annuity?

difference between an annuity and a compound annuity?Read more: What_is_the_primary_difference_between_an_annuity_and_a_compound_annuity


Can i read value in JAVA at runtime?

Yes you can...


What is difference between usage world and subject world?

What is difference between usage world and subject world?Read more: What_is_difference_between_usage_world_and_subject_world