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

Can we have this () and super () together?

600


Why inputstreamreader is used in java?

541


What are the differences between Java 1.0 and Java 2.0?

1672


What is the difference between jdk, jre, and jvm?

568


Is java written in c?

538






Describe 2 different ways to concatenate two strings.

674


Is java util list serializable?

531


How can we run a java program without making any object?

541


Why are the destructors for base class and derived class called in reverse order when the program exits

1702


What is a key in java?

497


Is it possible to compare various strings with the help of == operator?

546


Which class is the superclass for every class in java programming?

569


Do you need to import math in java?

557


What do you mean by constant time complexity?

594


What is immutable class in java?

506