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
Why synchronization is important?
What is package private scope in java?
Which is the best sorting technique in java?
Is null a keyword in java?
Why bytecode is called bytecode?
What are static initalizers in java ?
What are the differences between this and super keyword?
What are the differences between throw and throws?
What is the difference between the file and randomaccessfile classes?
How can an exception be thrown manually by a programmer?
Is int a class in java?
What is final method in java?
What is boolean flag in java?
what is collatration?
How do you square a number in java?