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

Write a program to find the greatest of three numbers in java?

554


Explain what do you mean by functional overloading in java?

552


describe method overloading

530


What is difference between identifier and variable?

464


What is the relationship difference the canvas class and the graphics class?

560






What is the difference between stringbuffer and stringbuilder?

572


Why does java have two ways to create child threads? Which way is better?

539


what is meant by Garbage collection?

616


What is the original name of java?

535


what is bmg file and how to create that files?what will it contailn?

1879


What is default constructors?

535


What are the legal operands of the instanceof operator?

556


how is final different from finally and finalize in java?

601


How many bits is a char?

533


What is thread life cycle?

535