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
How many digits is int32?
Is empty list java?
What is method in java with example?
What is local class in java?
What is constructor in java ?
How to connect to a remote database using Applet?
What is bytecode in java ?
What is ‘is-a ‘ relationship in java?
What is lazy initialization in java?
Is null a string in java?
How define set in java?
How can we make sure main() is the last thread to finish in java program?
How many bits are used to represent unicode, ascii, utf-16, and utf-8 characters in java programming?
Does java have a compiler?
Who found java?