Java I/O Deep Dive | InputStreams, System.in, Scanner vs BufferedReader | Java Full Course #20

Опубликовано: 11 June 2026
на канале: Coder Army
8,317
402

Complete Java I/O explained from first thought principles : Streams, System.in, BufferedReader, Scanner and how Java actually reads input.

In this in-depth Java I/O tutorial, we break down how input and output actually work in Java from the ground up.

Most developers use Scanner or BufferedReader without understanding what happens behind the scenes. In this lecture, we explore the entire Java I/O architecture, including streams, System.in, System.out, and the InputStream hierarchy.

You will learn how Java handles keyboard input, console output, and byte streams, and why classes like BufferedReader, InputStreamReader, and Scanner exist.

This video is designed to help you build first-principles understanding of Java I/O, which is extremely useful for backend development, interviews, and system programming.

What you'll learn:
How System.out.println() actually works internally
The role of the System class
What System.err is used for
How Java reads input from the keyboard
What streams of data are
The complete InputStream / OutputStream hierarchy
How System.in.read() works
The difference between Reader and InputStream
How BufferedReader improves performance
How InputStreamReader converts bytes to characters
Limitations of BufferedReader
Why Scanner exists
Scanner vs BufferedReader : which one should you use

Why Learn Java?
Java is one of the most powerful and widely used programming languages in the world.
It is used in:
Backend development
Enterprise applications
Android development
Banking systems
Large-scale distributed systems

If you want to master Data Structures, Spring Boot, Microservices, or System Design, Java fundamentals are essential.

Join Coder Army Whatsapp Group: https://whatsapp.com/channel/0029Va6H...
Join System Design Whatsapp Group: https://whatsapp.com/channel/0029VbBF...
Code and Notes: Github : https://github.com/adityatandon15/Jav...

We offer paid course on Dsa, web development, blockchain, system design and GenAI.
Join our Paid Course: https://strikes.in/
Coder Army: https://coderarmy.in/#home
Coder Army app: https://play.google.com/store/apps/de...

Connect with Aditya Tandon
Instagram :   / adityatandon2  
LinkedIn :   / adityatandon2  
Twitter : https://x.com/adityatandon02

Timestamps:

00:00 Intro
00:47 Standard IO
01:17 Types of IO
02:50 Console IO
03:03 Understanding System.out.println()
10:13 System class
15:15 System.err.println()
18:37 How to take user input
22:24 Streams of Data
28:57 InputStream & OutputStream Hierarchy
33:36 Taking user input by System.in.read()
42:42 Reader class
43:57 BufferedReader class
48:04 InputStreamReader class
52:14 Taking user input using BufferedReader
57:39 Limitations of BufferedReader
59:34 Scanner class
02:09:20 Scanner vs BufferedReader

java io tutorial, java input output, java io streams, java inputstream outputstream, java system in read, java bufferedreader tutorial, java scanner tutorial, scanner vs bufferedreader java, java inputstream hierarchy, java outputstream hierarchy, java system out println explained, java system class explained, java console input java, java io for beginners, java backend development tutorial, learn java programming, java programming tutorial, java streams explained, java io architecture, java standard io