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
What is difference between pointer and reference?
What is the applet security manager, and what does it provide?
How does thread synchronization occurs inside a monitor? What levels of synchronization can you apply?
make a method which any number and any type of argument and print sum of that arguments.....
What is method with example?
Explain what do you mean by functional overloading in java?
What is visibility mode?
What is jar?
How do you call a reference in java?
What is a concrete classes? Is Java object class is concrete class?
what happens when a thread cannot acquire a lock on an object? : Java thread
What is anagram of a string?
Can we sort hashset in java?
Is void a type?
What are different exception types exceptions available in java ?