Search Interview Questions | ![]() ![]() Click here and help us by providing the answer. ![]() Click Correct / Improve and please let us know. |
|
| ||||
Core Java - Interview Questions and Answers for 'Reader' - 5 question(s) found - Order By Newest | ||||
| ||||
Ans. The Reader/Writer class hierarchy is character-oriented, and the InputStream/OutputStream class hierarchy is byte-oriented | ||||
![]() ![]() | ||||
![]() | ||||
![]() ![]() ![]() | ||||
| ||||
Ans. FileReader | ||||
![]() | ||||
![]() | ||||
![]() ![]() ![]() | ||||
| ||||
Ans. http://www.buggybread.com/2015/01/java-input-reader-classes-and-interfaces.html | ||||
![]() | ||||
![]() ![]() ![]() | ||||
| ||||
Ans. Scanner is used for parsing tokens from the contents of the stream while BufferedReader just reads the stream. BufferedReader read files efficiently by using a buffer to avoid physical disk operations. Buffer size of Scanner is usually smaller than the Buffered Writer. BufferedReader is faster that Scanner as it just reads the Stream and doesn't Parse the tokens to read the stream into primitive data types. | ||||
![]() ![]() | ||||
![]() | ||||
![]() ![]() ![]() | ||||
| ||||
Ans. Which group of bytes represent which character is defined by character encoding. So when reading character by character from a stream of bytes using Reader, specifying character encoding becomes significant as the same group of bytes can represent different character in different character encoding(Eg UTF-8 and UTF-16 etc.) | ||||
![]() | ||||
![]() ![]() ![]() ![]() | ||||