explain System.out.println
Answer Posted / lakshmi
System.out.prinltn
System
--------
> pre-defined class in java.lang package
out
--------
out- it is a static variable inside System class of type PrintStream(class reference variable)
(ie) static PrintStream out;
and PrintStream is a predefined class in java.io package.
since its static thats why we are calling
System.out
so System.out means we are getting the reference to the object of type PrintStream
println
-------
println is the method in PrintStream class for Standard output stream.
so to access println method , i need PrintStream object which we are getting through System.out.
so finally
its System.out.println---- to produce standard output Stream
println-method name
| Is This Answer Correct ? | 65 Yes | 11 No |
Post New Answer View All Answers
Which containers use a flowlayout as their default layout in java programming?
Explain the term virtual machine?
What is difference between checked and unchecked exception in java?
How do you declare an array in java?
Why do we declare a class static?
Why java is not 100% object-oriented?
What is the use of string and stringbuffer?
what is the difference between future and callable interface in java?
What is the main functionality of the remote reference layer?
How is final different from finally and finalize?
What are the rules for naming an array?
What are static blocks in java ?
What is cr keyboard?
what is the difference between Object Based Language and Object Oriented Language?
What do you understand by the term string pool?