9) PrintStream
It is
used to write any type of data to the particular o/p stream.
When we
use constructors and methods of this class, no need to throw IOException.
constructors:-
PrintStream(OutputStream);
PrintStream(OutputStream,boolean flushstate);
methods:-
public void print(int);(for all datatypes).
public void print(String);
public void print(Object);
public void println(int);(for all datatypes).
public void println(String);
public void println(Object);
No comments:
Post a Comment