explain System.out.println
Answer Posted / suneel kumar
System is the Final Class,
Where as out is the object of PrintStrean class,which
reside in the System Class,
and println() is the method in the PrintStream class.
System --> public final class System
out --> public final static PrintStream out =
nullPrintStream();
println() --> public void println(Object x)
{
synchronized (this)
{
print(x);
newLine();
}
}
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
How to stop a thread in java? Explain about sleep () method in a thread?
What is a conditional statement explain with example?
What is the difference between throw and throws keywords?
Can we execute java program without main method?
What is class variable java?
What is meant by JVM? Is JVM platform independent or not?
What is a type parameter in java?
What is matcher in java?
how to split string in java?
Can we use switch statement with strings?
What is the difference between a checked and an unchecked exception?
What are the topics in advance java?
What is the meaning of find and replace?
Is break statement can be used as labels in java?
How does hashset works in java?