SlideShare a Scribd company logo
2
Most read
5
Most read
8
Most read
Presentation
On
Input / Output in Java
Presented By:
Pratiksha
Sharma
B.C.A. 2nd Year
Presented To:
Apurva omer
Content:-
• Input / Output in Java
• Stream
• types of streams
• Byte stream
• Character stream
• Standard Streams
Input / Output in Java
● Programs read inputs from data sources (e.g.,
keyboard, file, network, memory buffer, or another
program) and write outputs to data sinks (e.g., display
console,file, network, memory buffer, or another
program).
● Java I/O (Input and Output) is used to process the input
and produce the output.
● Java uses the concept of stream to make I/O operation
fast.
The java.io package is used for java i/o (file handling).
Stream
• A stream can be defined as a sequence of data.
• A stream is an object that either delivers data to its
destination (screen, file, etc.) or that takes data from a
source (keyboard, file, etc.)
Stream cont..
• There are two kinds of Streams −
○ Input Stream − The Input Stream is used to read data
from a source.
○ Output Stream − The Output Stream is used for writing
data to a destination.
Continue…
● Java defines two types of streams. They are,
○ Byte Stream : It provides a convenient means
for handling input and output of byte.
○ Character Stream : It provides a convenient
means for handling input and output of
characters.
types of streams
• There are two types of streams :
• Byte Streams
• Character Streams
Byte stream
• Byte stream have been designed to provide functional
features for creating and manipulating streams and
files for reading and writing bytes.
• Bytes can transmit in only one direction.
• Byte streams create binary files.
• Binary files are faster to read and write because no
translation need take place.
Character stream
• Character streams can be used to read and
write 16-bit Unicode characters.
• Character streams create text files.
• Two kinds of character stream classes-
Standard Streams
Java provides the following three standard streams −
• Standard Input − This is used to feed the data to user's
program and usually a keyboard is used as standard input
stream and represented as System.in.
• Standard Output − This is used to output the data produced
by the user's program and usually a computer screen is used
for standard output stream and represented as System.out.
• Standard Error − This is used to output the error data
produced by the user's program and usually a computer
screen is used for standard error stream and represented
as System.err.
Process of input and output stream
input/ output  in java
Ad

Recommended

Introduction to java
Introduction to java
Veerabadra Badra
 
Unit 4
Unit 4
Ravi Kumar
 
Research Methodology-Data Processing
Research Methodology-Data Processing
DrMAlagupriyasafiq
 
HE NE LASER PRESENTATION
HE NE LASER PRESENTATION
BWUBTA21117BIJOY
 
Slideshare ppt
Slideshare ppt
Mandy Suzanne
 
Air Pollution - control methods
Air Pollution - control methods
Jawahar Saud
 
Basics of JAVA programming
Basics of JAVA programming
Elizabeth Thomas
 
Azure Cloud PPT
Azure Cloud PPT
Aniket Kanitkar
 
9. Input Output in java
9. Input Output in java
Nilesh Dalvi
 
Java I/o streams
Java I/o streams
Hamid Ghorbani
 
Arrays in Java
Arrays in Java
Naz Abdalla
 
Java IO
Java IO
UTSAB NEUPANE
 
Class and Objects in Java
Class and Objects in Java
Spotle.ai
 
Java Tokens
Java Tokens
Madishetty Prathibha
 
Multithreading in java
Multithreading in java
Monika Mishra
 
Data Types & Variables in JAVA
Data Types & Variables in JAVA
Ankita Totala
 
JAVA AWT
JAVA AWT
shanmuga rajan
 
Java Streams
Java Streams
M Vishnuvardhan Reddy
 
Exception handling c++
Exception handling c++
Jayant Dalvi
 
SQLITE Android
SQLITE Android
Sourabh Sahu
 
Java(Polymorphism)
Java(Polymorphism)
harsh kothari
 
[OOP - Lec 07] Access Specifiers
[OOP - Lec 07] Access Specifiers
Muhammad Hammad Waseem
 
I/O Streams
I/O Streams
Ravi Chythanya
 
Inheritance in java
Inheritance in java
RahulAnanda1
 
File handling in Python
File handling in Python
Megha V
 
Basic Concepts of OOPs (Object Oriented Programming in Java)
Basic Concepts of OOPs (Object Oriented Programming in Java)
Michelle Anne Meralpis
 
Access specifiers(modifiers) in java
Access specifiers(modifiers) in java
HrithikShinde
 
Threads in JAVA
Threads in JAVA
Haldia Institute of Technology
 
L21 io streams
L21 io streams
teach4uin
 
inputoutputstreams-140612032817-phpapp02.pdf
inputoutputstreams-140612032817-phpapp02.pdf
hemanth248901
 

More Related Content

What's hot (20)

9. Input Output in java
9. Input Output in java
Nilesh Dalvi
 
Java I/o streams
Java I/o streams
Hamid Ghorbani
 
Arrays in Java
Arrays in Java
Naz Abdalla
 
Java IO
Java IO
UTSAB NEUPANE
 
Class and Objects in Java
Class and Objects in Java
Spotle.ai
 
Java Tokens
Java Tokens
Madishetty Prathibha
 
Multithreading in java
Multithreading in java
Monika Mishra
 
Data Types & Variables in JAVA
Data Types & Variables in JAVA
Ankita Totala
 
JAVA AWT
JAVA AWT
shanmuga rajan
 
Java Streams
Java Streams
M Vishnuvardhan Reddy
 
Exception handling c++
Exception handling c++
Jayant Dalvi
 
SQLITE Android
SQLITE Android
Sourabh Sahu
 
Java(Polymorphism)
Java(Polymorphism)
harsh kothari
 
[OOP - Lec 07] Access Specifiers
[OOP - Lec 07] Access Specifiers
Muhammad Hammad Waseem
 
I/O Streams
I/O Streams
Ravi Chythanya
 
Inheritance in java
Inheritance in java
RahulAnanda1
 
File handling in Python
File handling in Python
Megha V
 
Basic Concepts of OOPs (Object Oriented Programming in Java)
Basic Concepts of OOPs (Object Oriented Programming in Java)
Michelle Anne Meralpis
 
Access specifiers(modifiers) in java
Access specifiers(modifiers) in java
HrithikShinde
 
Threads in JAVA
Threads in JAVA
Haldia Institute of Technology
 

Similar to input/ output in java (20)

L21 io streams
L21 io streams
teach4uin
 
inputoutputstreams-140612032817-phpapp02.pdf
inputoutputstreams-140612032817-phpapp02.pdf
hemanth248901
 
Input output streams
Input output streams
Parthipan Parthi
 
Java IO Package and Streams
Java IO Package and Streams
babak danyal
 
Chapter 13_m5JAVANOTESAPPLETS,INPUT.pptx
Chapter 13_m5JAVANOTESAPPLETS,INPUT.pptx
noonoboom
 
Javaiostream
Javaiostream
Tien Nguyen
 
javaiostream
javaiostream
Arjun Shanka
 
Chapter 2.1 : Data Stream
Chapter 2.1 : Data Stream
Ministry of Higher Education
 
Web Technology Web Technology Notes Streams Network Principles and SocketsUni...
Web Technology Web Technology Notes Streams Network Principles and SocketsUni...
uthayashangar1
 
CHAPTER 5 mechanical engineeringasaaa.pptx
CHAPTER 5 mechanical engineeringasaaa.pptx
SadhilAggarwal
 
Files in java
Files in java
Muthukumaran Subramanian
 
Basic IO
Basic IO
Ravi_Kant_Sahu
 
Io streams
Io streams
Elizabeth alexander
 
Stream In Java.pptx
Stream In Java.pptx
ssuser9d7049
 
Javaiostream
Javaiostream
Manav Prasad
 
Buffer and scanner
Buffer and scanner
Arif Ullah
 
UNIT4-IO,Generics,String Handling.pdf Notes
UNIT4-IO,Generics,String Handling.pdf Notes
SakkaravarthiS1
 
CSE3146-ADV JAVA M2.pdf
CSE3146-ADV JAVA M2.pdf
VithalReddy3
 
Md121 streams
Md121 streams
Rakesh Madugula
 
Using Input Output
Using Input Output
raksharao
 
L21 io streams
L21 io streams
teach4uin
 
inputoutputstreams-140612032817-phpapp02.pdf
inputoutputstreams-140612032817-phpapp02.pdf
hemanth248901
 
Java IO Package and Streams
Java IO Package and Streams
babak danyal
 
Chapter 13_m5JAVANOTESAPPLETS,INPUT.pptx
Chapter 13_m5JAVANOTESAPPLETS,INPUT.pptx
noonoboom
 
Web Technology Web Technology Notes Streams Network Principles and SocketsUni...
Web Technology Web Technology Notes Streams Network Principles and SocketsUni...
uthayashangar1
 
CHAPTER 5 mechanical engineeringasaaa.pptx
CHAPTER 5 mechanical engineeringasaaa.pptx
SadhilAggarwal
 
Stream In Java.pptx
Stream In Java.pptx
ssuser9d7049
 
Buffer and scanner
Buffer and scanner
Arif Ullah
 
UNIT4-IO,Generics,String Handling.pdf Notes
UNIT4-IO,Generics,String Handling.pdf Notes
SakkaravarthiS1
 
CSE3146-ADV JAVA M2.pdf
CSE3146-ADV JAVA M2.pdf
VithalReddy3
 
Using Input Output
Using Input Output
raksharao
 
Ad

Recently uploaded (20)

National Fuels Treatments Initiative: Building a Seamless Map of Hazardous Fu...
National Fuels Treatments Initiative: Building a Seamless Map of Hazardous Fu...
Safe Software
 
Providing an OGC API Processes REST Interface for FME Flow
Providing an OGC API Processes REST Interface for FME Flow
Safe Software
 
TrustArc Webinar - 2025 Global Privacy Survey
TrustArc Webinar - 2025 Global Privacy Survey
TrustArc
 
Enabling BIM / GIS integrations with Other Systems with FME
Enabling BIM / GIS integrations with Other Systems with FME
Safe Software
 
Data Validation and System Interoperability
Data Validation and System Interoperability
Safe Software
 
MuleSoft for AgentForce : Topic Center and API Catalog
MuleSoft for AgentForce : Topic Center and API Catalog
shyamraj55
 
Security Tips for Enterprise Azure Solutions
Security Tips for Enterprise Azure Solutions
Michele Leroux Bustamante
 
AudGram Review: Build Visually Appealing, AI-Enhanced Audiograms to Engage Yo...
AudGram Review: Build Visually Appealing, AI-Enhanced Audiograms to Engage Yo...
SOFTTECHHUB
 
FIDO Seminar: New Data: Passkey Adoption in the Workforce.pptx
FIDO Seminar: New Data: Passkey Adoption in the Workforce.pptx
FIDO Alliance
 
FIDO Seminar: Authentication for a Billion Consumers - Amazon.pptx
FIDO Seminar: Authentication for a Billion Consumers - Amazon.pptx
FIDO Alliance
 
ENERGY CONSUMPTION CALCULATION IN ENERGY-EFFICIENT AIR CONDITIONER.pdf
ENERGY CONSUMPTION CALCULATION IN ENERGY-EFFICIENT AIR CONDITIONER.pdf
Muhammad Rizwan Akram
 
vertical-cnc-processing-centers-drillteq-v-200-en.pdf
vertical-cnc-processing-centers-drillteq-v-200-en.pdf
AmirStern2
 
Crypto Super 500 - 14th Report - June2025.pdf
Crypto Super 500 - 14th Report - June2025.pdf
Stephen Perrenod
 
OWASP Barcelona 2025 Threat Model Library
OWASP Barcelona 2025 Threat Model Library
PetraVukmirovic
 
“Key Requirements to Successfully Implement Generative AI in Edge Devices—Opt...
“Key Requirements to Successfully Implement Generative AI in Edge Devices—Opt...
Edge AI and Vision Alliance
 
AI VIDEO MAGAZINE - June 2025 - r/aivideo
AI VIDEO MAGAZINE - June 2025 - r/aivideo
1pcity Studios, Inc
 
“Addressing Evolving AI Model Challenges Through Memory and Storage,” a Prese...
“Addressing Evolving AI Model Challenges Through Memory and Storage,” a Prese...
Edge AI and Vision Alliance
 
“Why It’s Critical to Have an Integrated Development Methodology for Edge AI,...
“Why It’s Critical to Have an Integrated Development Methodology for Edge AI,...
Edge AI and Vision Alliance
 
FIDO Seminar: Perspectives on Passkeys & Consumer Adoption.pptx
FIDO Seminar: Perspectives on Passkeys & Consumer Adoption.pptx
FIDO Alliance
 
FME for Distribution & Transmission Integrity Management Program (DIMP & TIMP)
FME for Distribution & Transmission Integrity Management Program (DIMP & TIMP)
Safe Software
 
National Fuels Treatments Initiative: Building a Seamless Map of Hazardous Fu...
National Fuels Treatments Initiative: Building a Seamless Map of Hazardous Fu...
Safe Software
 
Providing an OGC API Processes REST Interface for FME Flow
Providing an OGC API Processes REST Interface for FME Flow
Safe Software
 
TrustArc Webinar - 2025 Global Privacy Survey
TrustArc Webinar - 2025 Global Privacy Survey
TrustArc
 
Enabling BIM / GIS integrations with Other Systems with FME
Enabling BIM / GIS integrations with Other Systems with FME
Safe Software
 
Data Validation and System Interoperability
Data Validation and System Interoperability
Safe Software
 
MuleSoft for AgentForce : Topic Center and API Catalog
MuleSoft for AgentForce : Topic Center and API Catalog
shyamraj55
 
Security Tips for Enterprise Azure Solutions
Security Tips for Enterprise Azure Solutions
Michele Leroux Bustamante
 
AudGram Review: Build Visually Appealing, AI-Enhanced Audiograms to Engage Yo...
AudGram Review: Build Visually Appealing, AI-Enhanced Audiograms to Engage Yo...
SOFTTECHHUB
 
FIDO Seminar: New Data: Passkey Adoption in the Workforce.pptx
FIDO Seminar: New Data: Passkey Adoption in the Workforce.pptx
FIDO Alliance
 
FIDO Seminar: Authentication for a Billion Consumers - Amazon.pptx
FIDO Seminar: Authentication for a Billion Consumers - Amazon.pptx
FIDO Alliance
 
ENERGY CONSUMPTION CALCULATION IN ENERGY-EFFICIENT AIR CONDITIONER.pdf
ENERGY CONSUMPTION CALCULATION IN ENERGY-EFFICIENT AIR CONDITIONER.pdf
Muhammad Rizwan Akram
 
vertical-cnc-processing-centers-drillteq-v-200-en.pdf
vertical-cnc-processing-centers-drillteq-v-200-en.pdf
AmirStern2
 
Crypto Super 500 - 14th Report - June2025.pdf
Crypto Super 500 - 14th Report - June2025.pdf
Stephen Perrenod
 
OWASP Barcelona 2025 Threat Model Library
OWASP Barcelona 2025 Threat Model Library
PetraVukmirovic
 
“Key Requirements to Successfully Implement Generative AI in Edge Devices—Opt...
“Key Requirements to Successfully Implement Generative AI in Edge Devices—Opt...
Edge AI and Vision Alliance
 
AI VIDEO MAGAZINE - June 2025 - r/aivideo
AI VIDEO MAGAZINE - June 2025 - r/aivideo
1pcity Studios, Inc
 
“Addressing Evolving AI Model Challenges Through Memory and Storage,” a Prese...
“Addressing Evolving AI Model Challenges Through Memory and Storage,” a Prese...
Edge AI and Vision Alliance
 
“Why It’s Critical to Have an Integrated Development Methodology for Edge AI,...
“Why It’s Critical to Have an Integrated Development Methodology for Edge AI,...
Edge AI and Vision Alliance
 
FIDO Seminar: Perspectives on Passkeys & Consumer Adoption.pptx
FIDO Seminar: Perspectives on Passkeys & Consumer Adoption.pptx
FIDO Alliance
 
FME for Distribution & Transmission Integrity Management Program (DIMP & TIMP)
FME for Distribution & Transmission Integrity Management Program (DIMP & TIMP)
Safe Software
 
Ad

input/ output in java

  • 1. Presentation On Input / Output in Java Presented By: Pratiksha Sharma B.C.A. 2nd Year Presented To: Apurva omer
  • 2. Content:- • Input / Output in Java • Stream • types of streams • Byte stream • Character stream • Standard Streams
  • 3. Input / Output in Java ● Programs read inputs from data sources (e.g., keyboard, file, network, memory buffer, or another program) and write outputs to data sinks (e.g., display console,file, network, memory buffer, or another program). ● Java I/O (Input and Output) is used to process the input and produce the output. ● Java uses the concept of stream to make I/O operation fast. The java.io package is used for java i/o (file handling).
  • 4. Stream • A stream can be defined as a sequence of data. • A stream is an object that either delivers data to its destination (screen, file, etc.) or that takes data from a source (keyboard, file, etc.)
  • 5. Stream cont.. • There are two kinds of Streams − ○ Input Stream − The Input Stream is used to read data from a source. ○ Output Stream − The Output Stream is used for writing data to a destination.
  • 6. Continue… ● Java defines two types of streams. They are, ○ Byte Stream : It provides a convenient means for handling input and output of byte. ○ Character Stream : It provides a convenient means for handling input and output of characters.
  • 7. types of streams • There are two types of streams : • Byte Streams • Character Streams
  • 8. Byte stream • Byte stream have been designed to provide functional features for creating and manipulating streams and files for reading and writing bytes. • Bytes can transmit in only one direction. • Byte streams create binary files. • Binary files are faster to read and write because no translation need take place.
  • 9. Character stream • Character streams can be used to read and write 16-bit Unicode characters. • Character streams create text files. • Two kinds of character stream classes-
  • 10. Standard Streams Java provides the following three standard streams − • Standard Input − This is used to feed the data to user's program and usually a keyboard is used as standard input stream and represented as System.in. • Standard Output − This is used to output the data produced by the user's program and usually a computer screen is used for standard output stream and represented as System.out. • Standard Error − This is used to output the error data produced by the user's program and usually a computer screen is used for standard error stream and represented as System.err.
  • 11. Process of input and output stream