SlideShare uma empresa Scribd logo
1 de 22
Various I/O Stream Classes




                       http://improvejava.blogspot.in/   1
Objectives

On completion of this period, you would be able to
 learn
   • Concept of streams
   • Various input and output stream classes




                      http://improvejava.blogspot.in/   2
Recap

In the previous classes, you have studied about
   exception handling mechanism in java
• Types of exceptions in java




                  http://improvejava.blogspot.in/   3
Concept of Stream
• Java performs I/O through streams
•A stream is an abstraction that either produces or consumes
information
•A stream is linked to an I/O device by Java I/O system
•All streams behave in the same manner, even if the actual
physical device they are linked to differ
•Thus, same I/O classes and methods can be applied to any
type of device
•For example, the same methods that are used to write console
can also be used to write to a disk file

                      http://improvejava.blogspot.in/           4
Concept of Stream
The following figure gives the relationship of java program with
I/O devices

  Key Board                                                            Screen


    Mouse                                                              printer
                                       Java
  Memory                                                               Memory
                                      Program

     Disk                                                               Disk

   Network                                                             Network
            Fig. 47.1 Relationship of Java programs with I/O devices
                           http://improvejava.blogspot.in/                       5
Concept of Stream
• The Fig. 47.1 shows in Java all I/O devices may be used with
stream
•For example, the same methods that are used to write console
can also be used to write to a disk file
• java implements streams within class hierarchies defined in
java.io. package




                      http://improvejava.blogspot.in/            6
Concept of Streams

• Input refers to flow of data into a program
• Output refers to flow of data out of a program as
  shown in Fig. 47.1




                  http://improvejava.blogspot.in/     7
Concept of Streams                        Contd..

• I/O operations are complex to understand
• But more flexible and powerful
• Developers have focused their attention for non
  keyboard oriented data handling
• Developers wanted to perform platform
  independent I/O, hence the complexity




                  http://improvejava.blogspot.in/             8
Various I/O Stream Classes
• java.io package defines I/O in terms of streams
• Two types of Streams
   1. Byte streams
      • 8 bits, binary data-based
      • Examples: InputStream and OutputStream
        classes
   2. Character streams
      • 16 bits, text-based
      • Examples: Reader and Writer classes

                   http://improvejava.blogspot.in/   9
Various I/O Stream Classes
• The following diagrams show the class hierarchies of
  the stream classes
   •   InputStream
   •   OutputStream
   •   Reader
   •   Writer




                      http://improvejava.blogspot.in/
                                9CM604.47               10
Hierarchy of InputStream classes
                     Object


                   InputStream

 FileInputStream                    SequenceInpuStream


PipedInpuStream                        ObjectInputStream


 ByteArrayInputStream               StringBufferInputStream

                     FilterInpuStream

                     DataInputStream
BufferedInpuStream                           PushBackInputSteam
                                                                  11
       Fig. 47.2         DataInput
                              http://improvejava.blogspot.in/
Hierarchy of OutputStream Classes
                    Object


                OutputStream

 FileOutputStream                ObjectOutputStream


PipedOutputStream               ByteArrayOutputStream




                    FilterOutpuStream

                   DataOutputStream
BufferedOutpuStream               PushBackOutputSteam
       Fig. 47.3     DataOutput
                             http://improvejava.blogspot.in/   12
Hierarchy of Reader Classes
                      Object


                        Reader

BufferedReader                                   StringReader


CharArrayReader                                      PipeReader


  InputStreamReader                                   FilterReader



                        Fig. 47.4
      FileReader                                     PushBackReader
                   http://improvejava.blogspot.in/                    13
Hierarchy of Writer Classes
                     Object


                       Writer

BufferedWriter                             PrintWriter


CharArrayWriter                                StringWriter


      FilterWriter                              PipeWriter


      FileReader
                       OutputStreamWriter
      Fig No 47.5
                                                              14
                                  FileWriter
            http://improvejava.blogspot.in/
Simple Input and Output Streams

• FileInputStream and FileOutputStream
   • Used to read data from or write data to a file on the native
     file system
• PipedInputStream and PipedOutputStream
   • Implements the input and output components of a pipe
   • Pipes are used to channel the output from one program (or
     thread or code block) into the input of another
   • A PipedInputStream must be connected to a
     PipedOutputStream and vice versa




                       http://improvejava.blogspot.in/          15
Simple Input and Output Streams

• ByteArrayInputStream and ByteArrayOutputStream
   • Reads data from or writes data to a byte array in memory
• SequenceInputStream
   • Concatenates multiple input streams into one input stream
• StringBufferInputStream
   • Allows programs to read from a StringBuffer as if it were
      an input stream




                      http://improvejava.blogspot.in/            16
Filtered Streams
• FilterInputStream and FilterOutputStream are subclasses of
  InputStream and OutputStream
• Both are abstract classes
• These classes defines the interface for filtered streams
• Filtered streams process the data as its being read or written
• DataInputStream and DataOutputStream
   • Reads or writes primitive Java data types in a machine
      independent format




                       http://improvejava.blogspot.in/             17
Filtered Streams
• BufferedInputStream and BufferedOutputStream
   • This is an efficient stream that buffers data while reading
     or writing
• LineNumberInputStream
   • An input stream that keeps track of line numbers while
     reading
• PushbackInputStream
   • An input stream with a one-byte pushback buffer
     PrintStream
   • An output stream with convenient printing methods




                       http://improvejava.blogspot.in/             18
Summary

• Flow of bits of information either into the program
  or from the program to and from
• Various input and output devices
• Stream is a logical entity that either produces or
  consumes information
• Two types of Streams
   1. Byte streams
   2. Character streams


                    http://improvejava.blogspot.in/     19
Quiz

1. Which of the following is not Byte streams

   A.   Input Stream
   B.   Output Stream
   C.   Reader
   D.   None




                        http://improvejava.blogspot.in/   20
Quiz

2. Streams is ordered sequences of data that have a
    source or a destination

   A. True
   B. False




                   http://improvejava.blogspot.in/    21
Frequently Asked Questions

1. Explain the concept of Streams
2. Explain the various input output stream classes




                   http://improvejava.blogspot.in/   22

Mais conteúdo relacionado

Mais procurados

Java IO Package and Streams
Java IO Package and StreamsJava IO Package and Streams
Java IO Package and Streamsbabak danyal
 
Java Input Output (java.io.*)
Java Input Output (java.io.*)Java Input Output (java.io.*)
Java Input Output (java.io.*)Om Ganesh
 
input/ output in java
input/ output  in javainput/ output  in java
input/ output in javasharma230399
 
java.io - streams and files
java.io - streams and filesjava.io - streams and files
java.io - streams and filesMarcello Thiry
 
IO In Java
IO In JavaIO In Java
IO In Javaparag
 
IO and serialization
IO and serializationIO and serialization
IO and serializationbackdoor
 
Basic i/o & file handling in java
Basic i/o & file handling in javaBasic i/o & file handling in java
Basic i/o & file handling in javaJayasankarPR2
 
Files & IO in Java
Files & IO in JavaFiles & IO in Java
Files & IO in JavaCIB Egypt
 
File Handling in Java Oop presentation
File Handling in Java Oop presentationFile Handling in Java Oop presentation
File Handling in Java Oop presentationAzeemaj101
 
Java - File Input Output Concepts
Java - File Input Output ConceptsJava - File Input Output Concepts
Java - File Input Output ConceptsVicter Paul
 
Reading and Writing Files
Reading and Writing FilesReading and Writing Files
Reading and Writing Filesprimeteacher32
 
14 file handling
14 file handling14 file handling
14 file handlingAPU
 

Mais procurados (20)

Java IO Package and Streams
Java IO Package and StreamsJava IO Package and Streams
Java IO Package and Streams
 
Files in java
Files in javaFiles in java
Files in java
 
Java Input Output (java.io.*)
Java Input Output (java.io.*)Java Input Output (java.io.*)
Java Input Output (java.io.*)
 
Javaiostream
JavaiostreamJavaiostream
Javaiostream
 
input/ output in java
input/ output  in javainput/ output  in java
input/ output in java
 
Java I/o streams
Java I/o streamsJava I/o streams
Java I/o streams
 
java.io - streams and files
java.io - streams and filesjava.io - streams and files
java.io - streams and files
 
Java stream
Java streamJava stream
Java stream
 
32.java input-output
32.java input-output32.java input-output
32.java input-output
 
IO In Java
IO In JavaIO In Java
IO In Java
 
IO and serialization
IO and serializationIO and serialization
IO and serialization
 
Java IO
Java IOJava IO
Java IO
 
Handling I/O in Java
Handling I/O in JavaHandling I/O in Java
Handling I/O in Java
 
Java I/O
Java I/OJava I/O
Java I/O
 
Basic i/o & file handling in java
Basic i/o & file handling in javaBasic i/o & file handling in java
Basic i/o & file handling in java
 
Files & IO in Java
Files & IO in JavaFiles & IO in Java
Files & IO in Java
 
File Handling in Java Oop presentation
File Handling in Java Oop presentationFile Handling in Java Oop presentation
File Handling in Java Oop presentation
 
Java - File Input Output Concepts
Java - File Input Output ConceptsJava - File Input Output Concepts
Java - File Input Output Concepts
 
Reading and Writing Files
Reading and Writing FilesReading and Writing Files
Reading and Writing Files
 
14 file handling
14 file handling14 file handling
14 file handling
 

Destaque

Jedi Slides Intro2 Chapter12 Advanced Io Streams
Jedi Slides Intro2 Chapter12 Advanced Io StreamsJedi Slides Intro2 Chapter12 Advanced Io Streams
Jedi Slides Intro2 Chapter12 Advanced Io StreamsDon Bosco BSIT
 
Nested classes in java
Nested classes in javaNested classes in java
Nested classes in javaRicha Singh
 
Inner classes9 cm604.28
Inner classes9 cm604.28Inner classes9 cm604.28
Inner classes9 cm604.28myrajendra
 
I/O in java Part 1
I/O in java Part 1I/O in java Part 1
I/O in java Part 1ashishspace
 
Inner classes ,annoumous and outer classes in java
Inner classes ,annoumous and outer classes in javaInner classes ,annoumous and outer classes in java
Inner classes ,annoumous and outer classes in javaAdil Mehmoood
 
Java: Objects and Object References
Java: Objects and Object ReferencesJava: Objects and Object References
Java: Objects and Object ReferencesTareq Hasan
 
Collections Framework
Collections FrameworkCollections Framework
Collections FrameworkSunil OS
 
JAVA Variables and Operators
JAVA Variables and OperatorsJAVA Variables and Operators
JAVA Variables and OperatorsSunil OS
 
Classes and Nested Classes in Java
Classes and Nested Classes in JavaClasses and Nested Classes in Java
Classes and Nested Classes in JavaRavi_Kant_Sahu
 
Object and Classes in Java
Object and Classes in JavaObject and Classes in Java
Object and Classes in Javabackdoor
 
Jsp/Servlet
Jsp/ServletJsp/Servlet
Jsp/ServletSunil OS
 
Java Basics
Java BasicsJava Basics
Java BasicsSunil OS
 
Introduction to class in java
Introduction to class in javaIntroduction to class in java
Introduction to class in javakamal kotecha
 

Destaque (18)

Unit v
Unit vUnit v
Unit v
 
Jedi Slides Intro2 Chapter12 Advanced Io Streams
Jedi Slides Intro2 Chapter12 Advanced Io StreamsJedi Slides Intro2 Chapter12 Advanced Io Streams
Jedi Slides Intro2 Chapter12 Advanced Io Streams
 
Nested classes in java
Nested classes in javaNested classes in java
Nested classes in java
 
Inner classes9 cm604.28
Inner classes9 cm604.28Inner classes9 cm604.28
Inner classes9 cm604.28
 
Inner classes
Inner classesInner classes
Inner classes
 
I/O in java Part 1
I/O in java Part 1I/O in java Part 1
I/O in java Part 1
 
Inner classes ,annoumous and outer classes in java
Inner classes ,annoumous and outer classes in javaInner classes ,annoumous and outer classes in java
Inner classes ,annoumous and outer classes in java
 
Java API, Exceptions and IO
Java API, Exceptions and IOJava API, Exceptions and IO
Java API, Exceptions and IO
 
Java: Objects and Object References
Java: Objects and Object ReferencesJava: Objects and Object References
Java: Objects and Object References
 
Collections Framework
Collections FrameworkCollections Framework
Collections Framework
 
Java Inner Classes
Java Inner ClassesJava Inner Classes
Java Inner Classes
 
JAVA Variables and Operators
JAVA Variables and OperatorsJAVA Variables and Operators
JAVA Variables and Operators
 
JAVA OOP
JAVA OOPJAVA OOP
JAVA OOP
 
Classes and Nested Classes in Java
Classes and Nested Classes in JavaClasses and Nested Classes in Java
Classes and Nested Classes in Java
 
Object and Classes in Java
Object and Classes in JavaObject and Classes in Java
Object and Classes in Java
 
Jsp/Servlet
Jsp/ServletJsp/Servlet
Jsp/Servlet
 
Java Basics
Java BasicsJava Basics
Java Basics
 
Introduction to class in java
Introduction to class in javaIntroduction to class in java
Introduction to class in java
 

Semelhante a Various io stream classes .47

CHAPTER 5 mechanical engineeringasaaa.pptx
CHAPTER 5 mechanical engineeringasaaa.pptxCHAPTER 5 mechanical engineeringasaaa.pptx
CHAPTER 5 mechanical engineeringasaaa.pptxSadhilAggarwal
 
Chapter 13_m5JAVANOTESAPPLETS,INPUT.pptx
Chapter 13_m5JAVANOTESAPPLETS,INPUT.pptxChapter 13_m5JAVANOTESAPPLETS,INPUT.pptx
Chapter 13_m5JAVANOTESAPPLETS,INPUT.pptxnoonoboom
 
inputoutputstreams-140612032817-phpapp02.pdf
inputoutputstreams-140612032817-phpapp02.pdfinputoutputstreams-140612032817-phpapp02.pdf
inputoutputstreams-140612032817-phpapp02.pdfhemanth248901
 
Buffer and scanner
Buffer and scannerBuffer and scanner
Buffer and scannerArif Ullah
 
Advanced programming ch2
Advanced programming ch2Advanced programming ch2
Advanced programming ch2Gera Paulos
 
Spring MVC framework
Spring MVC frameworkSpring MVC framework
Spring MVC frameworkMohit Gupta
 
Java session14
Java session14Java session14
Java session14Niit Care
 
Java programming Chapter 4.pptx
Java programming Chapter 4.pptxJava programming Chapter 4.pptx
Java programming Chapter 4.pptxssusera0d3d2
 
Byte arrayinputstream.50
Byte arrayinputstream.50Byte arrayinputstream.50
Byte arrayinputstream.50myrajendra
 
Stream In Java.pptx
Stream In Java.pptxStream In Java.pptx
Stream In Java.pptxssuser9d7049
 
Unit No 5 Files and Database Connectivity.pptx
Unit No 5 Files and Database Connectivity.pptxUnit No 5 Files and Database Connectivity.pptx
Unit No 5 Files and Database Connectivity.pptxDrYogeshDeshmukh1
 
CSE3146-ADV JAVA M2.pdf
CSE3146-ADV JAVA M2.pdfCSE3146-ADV JAVA M2.pdf
CSE3146-ADV JAVA M2.pdfVithalReddy3
 
Itp 120 Chapt 19 2009 Binary Input & Output
Itp 120 Chapt 19 2009 Binary Input & OutputItp 120 Chapt 19 2009 Binary Input & Output
Itp 120 Chapt 19 2009 Binary Input & Outputphanleson
 
Java IO, Serialization
Java IO, Serialization Java IO, Serialization
Java IO, Serialization Hitesh-Java
 
Session 22 - Java IO, Serialization
Session 22 - Java IO, SerializationSession 22 - Java IO, Serialization
Session 22 - Java IO, SerializationPawanMM
 

Semelhante a Various io stream classes .47 (20)

CHAPTER 5 mechanical engineeringasaaa.pptx
CHAPTER 5 mechanical engineeringasaaa.pptxCHAPTER 5 mechanical engineeringasaaa.pptx
CHAPTER 5 mechanical engineeringasaaa.pptx
 
Input & output
Input & outputInput & output
Input & output
 
Chapter 13_m5JAVANOTESAPPLETS,INPUT.pptx
Chapter 13_m5JAVANOTESAPPLETS,INPUT.pptxChapter 13_m5JAVANOTESAPPLETS,INPUT.pptx
Chapter 13_m5JAVANOTESAPPLETS,INPUT.pptx
 
inputoutputstreams-140612032817-phpapp02.pdf
inputoutputstreams-140612032817-phpapp02.pdfinputoutputstreams-140612032817-phpapp02.pdf
inputoutputstreams-140612032817-phpapp02.pdf
 
Buffer and scanner
Buffer and scannerBuffer and scanner
Buffer and scanner
 
Advanced programming ch2
Advanced programming ch2Advanced programming ch2
Advanced programming ch2
 
Basic IO
Basic IOBasic IO
Basic IO
 
Spring MVC framework
Spring MVC frameworkSpring MVC framework
Spring MVC framework
 
Java session14
Java session14Java session14
Java session14
 
Java programming Chapter 4.pptx
Java programming Chapter 4.pptxJava programming Chapter 4.pptx
Java programming Chapter 4.pptx
 
Byte arrayinputstream.50
Byte arrayinputstream.50Byte arrayinputstream.50
Byte arrayinputstream.50
 
Stream In Java.pptx
Stream In Java.pptxStream In Java.pptx
Stream In Java.pptx
 
Lecture 23
Lecture 23Lecture 23
Lecture 23
 
Unit No 5 Files and Database Connectivity.pptx
Unit No 5 Files and Database Connectivity.pptxUnit No 5 Files and Database Connectivity.pptx
Unit No 5 Files and Database Connectivity.pptx
 
CSE3146-ADV JAVA M2.pdf
CSE3146-ADV JAVA M2.pdfCSE3146-ADV JAVA M2.pdf
CSE3146-ADV JAVA M2.pdf
 
Itp 120 Chapt 19 2009 Binary Input & Output
Itp 120 Chapt 19 2009 Binary Input & OutputItp 120 Chapt 19 2009 Binary Input & Output
Itp 120 Chapt 19 2009 Binary Input & Output
 
oop unit1.pptx
oop unit1.pptxoop unit1.pptx
oop unit1.pptx
 
Java IO, Serialization
Java IO, Serialization Java IO, Serialization
Java IO, Serialization
 
Session 22 - Java IO, Serialization
Session 22 - Java IO, SerializationSession 22 - Java IO, Serialization
Session 22 - Java IO, Serialization
 
CS8392 OOP
CS8392 OOPCS8392 OOP
CS8392 OOP
 

Mais de myrajendra (20)

Fundamentals
FundamentalsFundamentals
Fundamentals
 
Data type
Data typeData type
Data type
 
Hibernate example1
Hibernate example1Hibernate example1
Hibernate example1
 
Jdbc workflow
Jdbc workflowJdbc workflow
Jdbc workflow
 
2 jdbc drivers
2 jdbc drivers2 jdbc drivers
2 jdbc drivers
 
3 jdbc api
3 jdbc api3 jdbc api
3 jdbc api
 
4 jdbc step1
4 jdbc step14 jdbc step1
4 jdbc step1
 
Dao example
Dao exampleDao example
Dao example
 
Sessionex1
Sessionex1Sessionex1
Sessionex1
 
Internal
InternalInternal
Internal
 
3. elements
3. elements3. elements
3. elements
 
2. attributes
2. attributes2. attributes
2. attributes
 
1 introduction to html
1 introduction to html1 introduction to html
1 introduction to html
 
Headings
HeadingsHeadings
Headings
 
Forms
FormsForms
Forms
 
Css
CssCss
Css
 
Views
ViewsViews
Views
 
Views
ViewsViews
Views
 
Views
ViewsViews
Views
 
Starting jdbc
Starting jdbcStarting jdbc
Starting jdbc
 

Various io stream classes .47

  • 1. Various I/O Stream Classes http://improvejava.blogspot.in/ 1
  • 2. Objectives On completion of this period, you would be able to learn • Concept of streams • Various input and output stream classes http://improvejava.blogspot.in/ 2
  • 3. Recap In the previous classes, you have studied about exception handling mechanism in java • Types of exceptions in java http://improvejava.blogspot.in/ 3
  • 4. Concept of Stream • Java performs I/O through streams •A stream is an abstraction that either produces or consumes information •A stream is linked to an I/O device by Java I/O system •All streams behave in the same manner, even if the actual physical device they are linked to differ •Thus, same I/O classes and methods can be applied to any type of device •For example, the same methods that are used to write console can also be used to write to a disk file http://improvejava.blogspot.in/ 4
  • 5. Concept of Stream The following figure gives the relationship of java program with I/O devices Key Board Screen Mouse printer Java Memory Memory Program Disk Disk Network Network Fig. 47.1 Relationship of Java programs with I/O devices http://improvejava.blogspot.in/ 5
  • 6. Concept of Stream • The Fig. 47.1 shows in Java all I/O devices may be used with stream •For example, the same methods that are used to write console can also be used to write to a disk file • java implements streams within class hierarchies defined in java.io. package http://improvejava.blogspot.in/ 6
  • 7. Concept of Streams • Input refers to flow of data into a program • Output refers to flow of data out of a program as shown in Fig. 47.1 http://improvejava.blogspot.in/ 7
  • 8. Concept of Streams Contd.. • I/O operations are complex to understand • But more flexible and powerful • Developers have focused their attention for non keyboard oriented data handling • Developers wanted to perform platform independent I/O, hence the complexity http://improvejava.blogspot.in/ 8
  • 9. Various I/O Stream Classes • java.io package defines I/O in terms of streams • Two types of Streams 1. Byte streams • 8 bits, binary data-based • Examples: InputStream and OutputStream classes 2. Character streams • 16 bits, text-based • Examples: Reader and Writer classes http://improvejava.blogspot.in/ 9
  • 10. Various I/O Stream Classes • The following diagrams show the class hierarchies of the stream classes • InputStream • OutputStream • Reader • Writer http://improvejava.blogspot.in/ 9CM604.47 10
  • 11. Hierarchy of InputStream classes Object InputStream FileInputStream SequenceInpuStream PipedInpuStream ObjectInputStream ByteArrayInputStream StringBufferInputStream FilterInpuStream DataInputStream BufferedInpuStream PushBackInputSteam 11 Fig. 47.2 DataInput http://improvejava.blogspot.in/
  • 12. Hierarchy of OutputStream Classes Object OutputStream FileOutputStream ObjectOutputStream PipedOutputStream ByteArrayOutputStream FilterOutpuStream DataOutputStream BufferedOutpuStream PushBackOutputSteam Fig. 47.3 DataOutput http://improvejava.blogspot.in/ 12
  • 13. Hierarchy of Reader Classes Object Reader BufferedReader StringReader CharArrayReader PipeReader InputStreamReader FilterReader Fig. 47.4 FileReader PushBackReader http://improvejava.blogspot.in/ 13
  • 14. Hierarchy of Writer Classes Object Writer BufferedWriter PrintWriter CharArrayWriter StringWriter FilterWriter PipeWriter FileReader OutputStreamWriter Fig No 47.5 14 FileWriter http://improvejava.blogspot.in/
  • 15. Simple Input and Output Streams • FileInputStream and FileOutputStream • Used to read data from or write data to a file on the native file system • PipedInputStream and PipedOutputStream • Implements the input and output components of a pipe • Pipes are used to channel the output from one program (or thread or code block) into the input of another • A PipedInputStream must be connected to a PipedOutputStream and vice versa http://improvejava.blogspot.in/ 15
  • 16. Simple Input and Output Streams • ByteArrayInputStream and ByteArrayOutputStream • Reads data from or writes data to a byte array in memory • SequenceInputStream • Concatenates multiple input streams into one input stream • StringBufferInputStream • Allows programs to read from a StringBuffer as if it were an input stream http://improvejava.blogspot.in/ 16
  • 17. Filtered Streams • FilterInputStream and FilterOutputStream are subclasses of InputStream and OutputStream • Both are abstract classes • These classes defines the interface for filtered streams • Filtered streams process the data as its being read or written • DataInputStream and DataOutputStream • Reads or writes primitive Java data types in a machine independent format http://improvejava.blogspot.in/ 17
  • 18. Filtered Streams • BufferedInputStream and BufferedOutputStream • This is an efficient stream that buffers data while reading or writing • LineNumberInputStream • An input stream that keeps track of line numbers while reading • PushbackInputStream • An input stream with a one-byte pushback buffer PrintStream • An output stream with convenient printing methods http://improvejava.blogspot.in/ 18
  • 19. Summary • Flow of bits of information either into the program or from the program to and from • Various input and output devices • Stream is a logical entity that either produces or consumes information • Two types of Streams 1. Byte streams 2. Character streams http://improvejava.blogspot.in/ 19
  • 20. Quiz 1. Which of the following is not Byte streams A. Input Stream B. Output Stream C. Reader D. None http://improvejava.blogspot.in/ 20
  • 21. Quiz 2. Streams is ordered sequences of data that have a source or a destination A. True B. False http://improvejava.blogspot.in/ 21
  • 22. Frequently Asked Questions 1. Explain the concept of Streams 2. Explain the various input output stream classes http://improvejava.blogspot.in/ 22