define System.out.println(); what is the meaning!
Answer Posted / raj
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 ? | 0 Yes | 1 No |
Post New Answer View All Answers
Write a program in java to calculate the difference between the sum of the odd level and even level nodes of a binary tree.
Why java is made?
What is the hashcode () and equals () used for?
Can a class have multiple constructors?
What advantage do java's layout managers provide over traditional windowing systems?
What is polymorphism in java? What are the kinds of polymorphism?
What is the primitive type short?
What class of exceptions are generated by the java run-time system?
Is java free for commercial?
What is the name of the java compiler?
Can this keyword be used to refer static members?
What is string builder?
When to use runnable interface vs thread class in java?
Explain Basics of OOP Language in java
What is meant by bytecode?