explain System.out.println

Answer Posted / mallikarjuna g

System : It is a standard java class. It comes from the
java.lang package. it is bydefault package.
Out : The class system contains static field named "out".
so System.out referes to the value stored in that static
filed. the value System.out is an object of the class
printStream from the standard java package java.io.
Println() : it is the instance method come from the
PrintStream class.

so System.out.println() calls the "Println()" method
associated with the "printStream" object referred to by
static field "out"

Is This Answer Correct ?    55 Yes 12 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are assembly attributes?

539


Is null a string or object in java?

544


Difference between comparator and comparable in java?

612


What is a nested class?

588


Why Do I Get A "permission Denied" Error After Downloading The .jnlp Java Launcher For The Vkvm?

618






Can you explain the usages of class.forname()?

600


What is difference overloading and overriding?

577


What is the difference between the prefix and postfix forms of the ++ operator?

552


What is thread life cycle in java?

578


what do you understand by the term string with respect to java?

524


What is the collections api in java programming?

546


How does predicate work in java?

529


Is list thread safe in java?

487


What is the difference between class forname and new?

542


What is nan inf?

501