answersLogoWhite

0

What is bufferedReader in advance java?

User Avatar

Ijooo

Lvl 1
14y ago
Updated: 8/17/2019

BufferedReader Reads text from a character-input stream, buffering characters so as to provide for the efficient reading of characters, arrays, and lines. The buffer size may be specified, or the default size may be used. The default is large enough for most purposes.

In general, each read request made of a Reader causes a corresponding read request to be made of the underlying character or byte stream. It is therefore advisable to wrap a BufferedReader around any Reader whose read() operations may be costly, such as FileReaders and InputStreamReaders. For example,

BufferedReader in = new BufferedReader(new FileReader("foo.in")); will buffer the input from the specified file. Without buffering, each invocation of read() or readLine() could cause bytes to be read from the file, converted into characters, and then returned, which can be very inefficient.

Programs that use DataInputStreams for textual input can be localized by replacing each DataInputStream with an appropriate BufferedReader.

User Avatar

Wiki User

14y ago

What else can I help you with?

Related Questions

What is the meaning of bufferedreader?

BufferedReader br = new BufferedReader- can readline and close Java closes when the program terminates but you should always close the file.


What is a BufferedReader in java?

buffered is basically a way of creating an object


What is parseInt in BufferedReader in java?

parseInt() interprets the next available token as an int.


What is IOExeption in BufferedReader in java?

IOException is thrown when a general input output error occurs.


Example of BufferedReader mothod in java programming?

import java.io.*; class gar { protected static void main()throws IOException { BufferedReader in=new BufferedReader(new InputStreamReader(System.in)); System.out.print("Enter a value: "); int a=Integer.parseInt(in.readLine()); } }


In java which package BufferReader class exist?

I believe you are asking about BufferedReader. It is in java.io package. java.io.BufferedReader;


What is THE definition of advance java?

Advance java is the implementation of servlet in web pages.


Which is better advance java or android?

Java is much advance because application designed to run over Android are written in Java Language.


How do you input and display a character in java?

to input a character follow this code: InputStreamReader is=new InputStreamReader(System.in); BufferedReader bf=new BufferedReader(is); ch=bf.readLine(); //to display a character simply write System.out.println() i hope dis vl help u


What is BufferedReader in Java Programming?

BufferedReader is a class used to read text from charater-input stream and buffering characters which reads characters, arrays, and new lines. In general, each read request made using "Reader" class, causes a corresponding read request to be made of the underlying character or byte stream. It is therefore advisable to wrap a BufferedReader around any Reader whose read() operations may be costly, such as FileReaders and InputStreamReaders. For example, BufferedReader in = new BufferedReader(new FileReader("foo.in"));


What is the fees of advance java in NIIT?

Rs.8900


Will you give us 10 to 15 different projects of advance java so that we can study advance java?

A good program display a model of human cells, and test different mutations.