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

What is multi level inheritance in java?

563


How do you sort in descending order in java using collections sort?

506


What are the advantages of exception handling?

558


Can we extend singleton class?

535


What language is an assembler written in?

559






What is a loop java?

592


What technique can be employed to compare two strings?

578


What is busy spin, and why should you use it?

593


what is daemon thread and which method is used to create the daemon thread? : Java thread

537


Explain the features of interfaces in java?

561


What is appletviewer?

576


Explain the difference between association, aggregation and inheritance relationships.

560


How will you invoke any external process in java?

606


What are the advantages of functions?

525


Is space a string in java?

515