Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

What is the difference between DataInputStream and
BufferedReader

Answer Posted / a

The DataInputStream works with the binary data, while the
BufferedReader work with character data.

All primitive data types can be handled by using the
corresponding methods in DataInputStream class, while only
string data can be read from BufferedReader class and they
need to be parsed into the respective primitives.

DataInputStream is a part of filtered streams, while
BufferedReader is not.

DataInputStream consumes less amount of memory space being
it is binary stream, where as BufferedReader consumes more
memory space being it is character stream.

The data to be handled is limited in DataInputStream, where
as the number of characters to be handled has wide scope in
BufferedReader.

Is This Answer Correct ?    28 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is functional interface in java example?

999


What purpose do the keywords final, finally, and finalize fulfill?

1095


What is immutable in java?

1071


Does google use java?

974


Explain the importance of finalize() method.

969


Is null a keyword in java?

979


What makes a function well defined?

993


Is passing by reference faster?

996


How to implement a multithreaded applet?

2676


Variables used in a switch statement can be used with which datatypes?

999


How many types of string data types are there?

1098


Why is stringbuffer thread safe?

1051


Can I extend singleton class in java?

1112


Can you explain inner class.

1090


What is jit and its use?

991