explain System.out.println
Answer Posted / narasimhulu
System is a final class in java.lang package, which is the
default package in Java.
out is a static variable in System class.
println() is a method of PrintStream class which is in
java.io package
in the system class
static printstream out;
so "out" acts as a reference for PrintStream class and also
static variable in System class.
so finally it produces the output to the console(character
using as input)
Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
which pattern is default in scanner package?
Give few examples of final classes defined in Java API?
Why we used vector class?
What is difference between static and abstract class?
How to retrieve data from database in java using arraylist?
What is consumer interface?
What is the importance of hashcode() and equals() methods?
What are the Main functions of Java?
What do you mean by buffering?
What are the different types of data structures in java?
What is the use of private static?
What is singletonlist in java?
What is keyset in java?
What is the program compilation process?
Can we override private method in java?