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
Can java list contain duplicates?
What is the difference between preemptive scheduling and time slicing?
What is unicode datatype?
What is unicode full form?
What is the difference between stringbuffer and stringbuilder?
Is 0 true or is 1 true?
List the different types of classloaders in java.
What is the size of boolean variable?
Is linkedlist thread safe in java?
Is 0 a real number?
how to prepare for IT Officers Interview in Banks
What is meant by singleton class?
Why can't you declare a class as protected?
Difference between final and effectively final ? Why is effectively final even required ?
Explain the access modifiers for a class, method and variables?