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

Answer Posted / pratima

Display normally whatever you want to display
System.out.println("Hello")


Display Error messaage
System.err.println("Hello")
o/p:-Hello(In red color)

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to sort a collection of custom Objects in Java?

602


How can we make a class virtual?

644


Hi i am creating desktop application in that i want calling to mobile number. i have java telephone api (JTAPI) but i dont understand how it configure & use plese help me

1363


What is a protected class in java?

542


Is alive method in java?

508






What is arrays aslist in java?

522


What is the use of beaninfo?

592


What is the same as procedures?

537


What is a parameter example?

531


How to optimize the javac output?

602


Explain a few methods of overloading best practices in java?

513


Is java util regex pattern thread safe?

517


Why is the main method static?

604


How many tetrahedral voids are there in bcc?

547


Can singleton class be inherited in java?

518