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
What is methodological theory?
What is a method type?
What is a class object?
What is valid keyword in java?
Give a practical example of singleton class usage?
What is an exception? difference between Checked and Unchecked exception in Java
Can you instantiate the math class in Java?
Write a program in java to calculate the difference between the sum of the odd level and even level nodes of a binary tree.
What are the main differences between the java platform and other platforms?
What is boolean flag in java?
How do you make an arraylist empty in java?
Explain about interthread communication and how it takes place in java?
Why parameters should be passed by reference?
Is list thread safe in java?
Are constructors methods?