explain System.out.println

Answer Posted / anup

----> public final class System extends Object <------

Directory Structure is as follows:
java.lang.Object
|
+--java.lang.System

System class has following static field-
static PrintStream out =new PrintStream();

directory Structure of PrintStream:
java.lang.Object
|
+--java.io.OutputStream
|
+--java.io.FilterOutputStream
|
+--java.io.PrintStream

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can you call one constructor from another if a class has multiple constructors?

589


Can we override constructors in java?

681


Are arrays passed by reference in java?

492


What is an object in java and how is it created?

591


how many types of Inheritance?

655






Why is stringbuffer called mutable?

567


What is string made of?

531


What is a package in java? List down various advantages of packages.

758


If goto and const is reserve words than why it is not work in java?

1510


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

575


Can we able to pass objects as an arguments in java?

535


What are the 8 primitive data types in java?

549


Does constructor be static?

566


How is treeset implemented in java?

494


Why we use multi threading instead of multiprocessing?

576