Why cant we define System.out.println() inside a class
directly?

Answer Posted / madhu

we can override only class methods and we can't override the
output Stream methods.

Is This Answer Correct ?    2 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

define the terminology association.

902


When is update method called?

906


What is the difference between overriding and overloading in OOPS.

847


Write a program to print fibonacci series

834


How do you escape json?

783


How can constructor chaining be done by using the super keyword?

887


Can a abstract class be declared final?

809


describe synchronization in respect to multithreading? : Java thread

733


Which of the following is not an isolation level in the JDBC

1912


Explain the difference between comparator and comparable in java?

711


What are the java ide’s?

820


What is the difference between @before and @beforeclass annotation?

763


How is final different from finally and finalize?

705


Is alive in java?

737


What is the difference between iterator and enumeration ?

778