Yes it is
possible to print any massage without using System.out.println( ) statement.
Lest see
how it works…We will use same method to print the massage instead of using
System.out.println( ), which are explain below:-
· System.out.write(“welcome
to dashzin.blogspot.in”);
· System.out.format(“ Hai
dashzin.blogspot.in”);
· printStream out=printStream(new FileOutPutStream(filedescriptor.out));
out.print(“dashzin.blogspot.in”);
· System.err.print(“dashzin.blogspot.in”);
· System.console().writer().print(“dashzin.blogspot.in”);
here i
have sharing screenshot of program execution with you
to get command on it flow..
0 comments:
Post a Comment