Is System.err.println(""Statement"); is execute the output
on console .
Example:
System.err.println("Hello JAVA");

Answers were Sorted based on User's Feedback



Is System.err.println(""Statement"); is execute the output on console . Example: ..

Answer / rakeshchandra

Yes , It will execute and the output is
Hello JAVA (in red color)

Is This Answer Correct ?    33 Yes 5 No

Is System.err.println(""Statement"); is execute the output on console . Example: ..

Answer / prabhjot

it will execute same as System.out.println()
there is no change in color
For example: Hello Java

Is This Answer Correct ?    8 Yes 6 No

Is System.err.println(""Statement"); is execute the output on console . Example: ..

Answer / salman abbas

Yes , It will execute and the output is
Hello JAVA (in red color)

Is This Answer Correct ?    1 Yes 0 No

Is System.err.println(""Statement"); is execute the output on console . Example: ..

Answer / manikandan [ gtec,vellore ]

yes,It'll print Hello JAVA in red color in IDE but in
command prompt it'll print all in same color

Is This Answer Correct ?    4 Yes 4 No

Is System.err.println(""Statement"); is execute the output on console . Example: ..

Answer / srinu

yes its execute
output:Hello JAVA
no change the color

Is This Answer Correct ?    3 Yes 4 No

Is System.err.println(""Statement"); is execute the output on console . Example: ..

Answer / my

java

Is This Answer Correct ?    5 Yes 10 No

Is System.err.println(""Statement"); is execute the output on console . Example: ..

Answer / kannna

syntax error;

Is This Answer Correct ?    1 Yes 9 No

Is System.err.println(""Statement"); is execute the output on console . Example: ..

Answer / rtetr

574

Is This Answer Correct ?    3 Yes 14 No

Post New Answer

More Advanced Java Interview Questions

What happens when a thread cannot acquire a lock on an object?

0 Answers  


What is synchronization and why is it important?

0 Answers  


What is message driven beam?

0 Answers  


What is a policy?

0 Answers  


Can I import same package/class twice? Will the jvm load the package twice at runtime?

0 Answers  


Explain bind(), rebind(), unbind() and lookup() methods?

1 Answers  


Explain Object Serialization and it can be used?

3 Answers   Infosys,


What are the implicit objects?

2 Answers   HCL,


how convert java file to jar files?

10 Answers   Samsung,


What is the RMI and Socket?

0 Answers  


What is the diffrence between a local-tx-datasource and a xa-datasource?

0 Answers  


What is the difference between the string and stringbuffer classes?

0 Answers  


Categories