Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

Difference between ?System.out.println?
and ?System.error.println??

Answer Posted / ranganathkini

P.S. Please correct the questions. It is not:
Difference between ?System.out.println? and
?System.error.println??

It must be:
Difference between ?System.out.println? and
?System.err.println??

The java.lang.System provides 3 static fields System.out,
System.err and System.in which represent the standard output
stream, standard error stream and standard input stream

Standard Output stream connects the program to the system
console screen and is commonly used to display informative
messages to the user.

Standard Error stream by default connects the program system
console screen and is commonly used to display error
messages to the user.

The Standard Input stream connects the program to the system
keyboard device and provides capability to the program to
read from keyboard input.

Java provides facilities by which these streams can be
redirected to other sources or destinations and change the
way the program behaves.

For example, the standard error stream can be redirected to
a output stream that writes to a log file for error analysis.

Is This Answer Correct ?    51 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

explain multi-threading in java?

958


Can you start a thread twice in Java?

1059


Can a constructor have different name than a class name in java?

1082


Is sizeof a keyword in java programming?

1013


What is a method in programming?

1121


Does sprintf add a null terminator?

1034


Can a class have 2 constructors?

845


Is static a singleton?

922


Is null or empty java?

924


Can you override private or static method in java?

929


How to sort an array in java without using sort method?

844


Explain the hierarchy of java exception classes?

1017


What does 0 mean in boolean?

926


What is java lang string?

941


Explain about doubly linked list

971