Answer Posted / subbu
//the System class belongs to java.lang package
class System {
public static final PrintStream out;
//...
}
//the Prinstream class belongs to java.io package
class PrintStream{
public void println();
//...
}
java.lang package is default package hence no need to import
additionaly to use System class
System is having static reference of PrintStream class whihc
has println() method.
So we can directly acces the println() using out referece.
System.out.println();
| Is This Answer Correct ? | 16 Yes | 0 No |
Post New Answer View All Answers
What means public static?
What is enhanced loop in java?
Which is better list or arraylist in java?
Difference between nested and inner classes ?
What are keyboard events?
Explain the importance of finally block in java?
Why there are some null interface in java? What does it mean?
Can a string be null?
what is the difference between process and thread? : Java thread
What is the use of math abs in java?
How can we make copy of a java object?
What are thread priorities and importance of thread priorities in java?
What is methodological framework?
Can memory leak in java?
make a method which any number and any type of argument and print sum of that arguments.....