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 the maximum length of a url?
Can you write a java class that could be used both as an applet as well as an application?
What is the difference between an array and an array list?
How do constructors use this() and super()?
What do you understand by looping in java? Explain the different types of loops.
Can list contain null in java?
How do you sort words in java?
Will the compiler creates a default constructor if I have a parameterized constructor in the class?
What is the purpose of using javap?
What do you understand by casting in java language?
What is oop in java?
Explain java thread life cycle.
what is comparable and comparator interface?
What are the advantages and disadvantages of reference counting in garbage collection?
Why is singleton instance static?