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 the difference between a threads start() and run() methods? : Java thread
What is the use of parse function in java?
What is the difference between == and === javascript?
How is a variable stored in memory?
What is difference between local variable and global variable?
What is == and === in javascript?
What is the static variable?
How do you detect memory leaks?
Are private methods final?
Is java se open source?
Why is string class considered immutable?
What is a predicate method?
What is difference between identifier and variable?
What does it mean that strings are immutable?
Can array grow dynamically in java?