define System.out.println(); what is the meaning!
Answer Posted / sagar g
System : The System is a class and cannot be instantiated.
out : Its a static field with type PrintStream of System
class and object of PrintStream class.
println : Its a method of PrintStream class.
As "println()" is a method of PrintStream class and "out"
is an object of PrintStream class, object can call its
public method "println()"
out.println();
Since "out" is static , it so that it is called using class
name "System"
System.out.println()
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
How does callback work in java?
What does exclamation mean in java?
What about main thread in java?
What are class types in java?
Which is better list or arraylist in java?
What are methods of a class?
Does treeset use compareto?
What is the purpose of assert keyword used in jdk1.4.x?
How do you compare two strings lexicographically?
What are the 8 data types in java?
What is the purpose of static methods and static variables?
What are the elements of java?
What is jee6?
Can you call a method in a method?
What is an immutable class? How to create an immutable class?