explain System.out.println
Answer Posted / prashant
System : It is a java class in the java.lang package.
Out : it is a static field in System class.it holds the
reference of an object of the class printStream.
Println() : it is the method in the
PrintStream class.
so because out is static we can call it using class name
and because of it is returning object we can call methods
present in the object.and one of the method is println.
| Is This Answer Correct ? | 12 Yes | 11 No |
Post New Answer View All Answers
What is a function in java?
What is difference between add() and addelement() in vector?
How do you sort words in java?
What are the loops in java?
What is a native method in java programming?
What is a double?
Differences between C and Java?
Does java set allow duplicates?
What is widening and narrowing in java? Discuss with an example.
What is an empty list in java?
What is one third plus one third as a fraction?
What is abstract class constructor called?
Which variables are stored in stack?
What is the difference between serializable and externalizable interface?
What is function and method in java?