Search Interview Questions
| 3304 questions in repository.|
There are more than 200 unanswered questions.
Click here and help us by providing the answer.
Have a video suggestion.
Click Correct / Improve and please let us know.
|Java - Interview Questions and Answers|
|Ans. A Stream is an abstraction that either produces or consumes information. There are two types of Streams :|
Byte Streams: Provide a convenient means for handling input and output of bytes.
Character Streams: Provide a convenient means for handling input & output of characters.
Byte Streams classes: Are defined by using two abstract classes, namely InputStream and OutputStream.
Character Streams classes: Are defined by using two abstract classes, namely Reader and Writer.
|Help us improve. Please let us know the company, where you were asked this question :|
|Like Discuss Correct / Improve  java   file io   streams   byte stream   character stream  file handling|
|Explain System.out.println ?|
|What is the difference between the Reader/Writer class hierarchy and the InputStream/OutputStream class hierarchy?|
|Which class is used to read streams of characters from a file?|
|Which class is used to read streams of raw bytes from a file?|
|How Spliterator in Java 8 different than iterator ?|
|Which is better in terms of performance - Iterator or Spliterator ?|
|Difference between System.out.printf and System.out.println ?|
|What is the difference between the Reader/Writer java.io hierarchy and the Stream class hierarchy?|
|Why is it important to close files and streams ?|