explain System.out.println
Answer Posted / ramu.gadde
System:It is the class Name which is available in java.lang
package.
out: is the static variable(public static final
java.io.PrintStream out)
Analysis of out variable:
So many people are conflict about this out,
a)Either it is object or variable.
Reason:In java there is no static object(means with static
keyword it is called variable only)
println:is a method which is available in
Java.io.PrintStream class)
the step is considered by java team like this
class System
{
public static final java.io.PrintStream out=new PrintStream();
------
}
So they called System.out.println()
I think u understand about this completely.
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What is java util?
Can we overload the constructors?
How does queue work in java?
What is merge sort in java?
What is command line argument in java?
Why java is considered as platform independent?
What is meant by data hiding in java?
Can we override compareto method?
define polymorphism in java
Explain the features of java?
What is the difference between a synchronized method and a synchronized block?
What is the difference between serializable and externalizable interfaces?
What is the use of join method?
What is string length in java?
Is java an ide?