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
What is the purpose of encapsulation?
What happens if constructor is private?
Explain about main() method in java ?
What is oop principle in java?
What are keywords in java?
What are adapter classes?
List some java keywords sun like c, c + + keywords?
How does split work in java?
What is the similarity between dynamic binding and linking?
What is the difference between JDBC 1.0 and JDBC 2.0?
Explain java coding standards for interfaces?
Can we inherit a class with private constructor?
what is the purpose of the wait(), notify(), and notifyall() methods? : Java thread
What is set string?
What are static blocks and static initalizers in java ?