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 immutable data?
23. Storage space in java is of the form Stack Queue Heap List 24. What is java code embedded in a web page known as Applets Servlets scriptlets snippets 25. Which of the following attributes are compulsory with an
Why unicode is important?
How you can force the garbage collection?
What is type conversion in java?
what is the difference between preemptive scheduling and time slicing? : Java thread
Who developed java?
How many functional interfaces does java 8 have?
Explain JMS in detail.
What is the purpose of the file class in java programming?
What is queue in java?
How do I convert a numeric ip address like 192.18.97.39 into a hostname like java.sun.com?
What class of exceptions are generated by the java run-time system?
Can we create an object if a class doesn't have any constructor ( not even the default provided by constructor ) ?
What is a java string?