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
How can you generate random numbers in java?
When object is created and destroyed?
Explain list interface?
Which object oriented concept is achieved by using overloading and overriding?
What is an empirical question?
How do you escape in java?
What are the topics in core java?
What is an abstract method in java programming?
What is the latest version of java?
Is main a keyword in java?
Can a main method be declared final?
How do you create immutable object in java?
Which category the java thread do fall in?
How do you do descending order in java?
What is the purpose of final keyword and when to use it?