explain System.out.println

Answer Posted / narasimhulu

System is a final class in java.lang package, which is the
default package in Java.
out is a static variable in System class.
println() is a method of PrintStream class which is in
java.io package
in the system class
static printstream out;
so "out" acts as a reference for PrintStream class and also
static variable in System class.
so finally it produces the output to the console(character
using as input)

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

which pattern is default in scanner package?

1803


Give few examples of final classes defined in Java API?

707


Why we used vector class?

631


What is difference between static and abstract class?

520


How to retrieve data from database in java using arraylist?

530






What is consumer interface?

558


What is the importance of hashcode() and equals() methods?

581


What are the Main functions of Java?

627


What do you mean by buffering?

556


What are the different types of data structures in java?

493


What is the use of private static?

535


What is singletonlist in java?

506


What is keyset in java?

655


What is the program compilation process?

584


Can we override private method in java?

622