define System.out.println(); what is the meaning!
Answer Posted / dilip yadav
System- public final class System extends Object
The System class contains serveral useful class
fields and methods.it cannot be instantiated
out-
The out variable in the System class refers to (points
to) an instance of the PrintStream class (a PrintStream
object) which is automatically instantiated when the System
class is loaded into the application.
println()-the println() methods in class PrintStream.
System.out.prinln("HI DILIP ");
This statement invokes the println() method of an object of
the PrintStream class which is referred to (pointed to) by
the variable named out which is a class variable of the
System class.
| Is This Answer Correct ? | 14 Yes | 4 No |
Post New Answer View All Answers
What is the final blank variable?
What is abstract class constructor called?
Does A Class Inherit The Constructors Of Its Superclass?
When does an object becomes eligible for garbage collection in java?
What will happen if static modifier is removed from the signature of the main method?
Difference between method overloading and method overriding in java ?
What is use of super keyword?
Does java trim remove newline?
What java ide should I use?
Is arraylist sorted in java?
Can we restart a thread already started in java?
What is public static?
How many bytes is a unicode character?
What is a java lambda expression?
Can we sort hashset in java?