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 / rama

An important difference between the ...Stream classes and
the ...Reader/...Writer classes is that streams work with
binary data (in other words, raw bytes), while readers and
writers work with character data. In going from one to the
other there's always an encoding or decoding of data
involved.

The en-/decoding step can't be done in a meaningful way
unless one knows what encoding was used. Common encodings
are US-ASCII, UTF-8 and other Unicode variants, MacRoman,
ISO-8859-1 and CP1252. Furthermore, each platform (Windows,
Linux, OS X, ...) has its own default encoding, so if no
encoding is specified, the JVM will choose one - which may
well be the wrong one.

Is This Answer Correct ?    8 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

whar are the draw backs of programming lang step by step in Clang and next in C++ and next and in Java nad in .Net

2158


Which api is provided by java for operations on set of objects?

1523


What is Major and importance difference between for and foreach loop ?

1201


What are the different collection views provided by maps?

1041


What is a native method in java programming?

1109


Is arraylist an object in java?

1228


What are basic data types?

1166


What about static nested classes in java?

1189


Explain the difference between serializable and externalizable in java?

1135


What do you know about the garbate collector?

1081


Why call by value prevents parameter value change?

1125


Why synchronization is important?

1071


Which package is imported by default?

1132


How many types of flags are there?

1060


What happens if an exception is not handled in a program?

1147