explain System.out.println
Answer Posted / lalit bhangale
System.out.println();
System is the Class in which out is static object of
class PrintStream which refers t othe standard output ie
console output,
and PrintStream class contains the method println()
which will be accessed using PrintStream object out.
Since out is static so it can be only accessed using
class name in which it contains.
so System.out.println(); simply invokes println()
method to output specified data to standard output console.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is difference between add() and addelement() in vector?
Differentiate between the constructors and methods in java?
Why to use nested classes in java? (Or) what is the purpose of nested class in java?
What is "this" keyword in java? Explain
What is entry in java?
How do you remove duplicates from an array in java?
What are the states of thread in java?
What do you understand by weak reference?
Does sprintf add a null terminator?
Why java uses the concept of the string literal?
What is java lang string?
What is the current version of java?
Discuss different types of errors that generally occur while programming.
what is the major difference between linkedlist and arraylist in java?
What happens if I remove static from main method?