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
How to create packages in java?
Which is best ide for java?
What is a return in java?
Can you make a constructor final?
What is the basic concept of java?
When wait(), notify(), notifyall() methods are called does it releases the lock or holds the acquired lock?
How do you do a line break in java?
How to create a thread in java?
What are the restrictions that are applied to the java static methods?
Explain spliterator in java8?
What is return code?
What is the method to expand and collapse nodes in a jtree?
Which class is the superclass for every class in java programming?
In which order the iterator iterates over collection?
Why bytecode is called bytecode?