BufferedReader Class with read() method

In this blog, we will work on BufferedReader class with read() method.

Different between read() and readLine() method

read() -> return type int | ASCII Code

readLine() -> return type String object


This is basic different between both method. In this blog, we will see read() method.


Let’s take example on BufferedReader Class with read() method

import java.io.*;

class io3


                public static void main(String args[]) throws IOException


                                                BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

                                                char ch = (char)br.read();



                                                // Program stop when we press Q




                                                                ch = (char)br.read();







Welcome in Portal Isssearch Q

Welcome in Portal Isssearch


Video available on YouTube.


If you have any query on blog example, you can directly comment us or subscribe our website

Earn Money Online

1100total visits,2visits today


Hello, I am Maddy a Java blogger, trainer and developer

Related articles

Comments are closed.