explain System.out.println
Answer Posted / srihari desai
System is a pre-defined class present in java.lang package.
System is a final class since it cant be extended.
There is one more pre-defined class called PrintStream
present in java.io package.
The Object of PrintStream class created as static in System
class.
In PrintStream class There are Total 9 Overloaded println n
print methods.
Each println/print methods takes different data type as a
parameter like
println(int)
println(float)
println(double)
println(short)
println(byte)
etc
Thank u 1 n all
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
What do you mean by buffering?
What is literal example?
What is final keyword in java? Give an example.
What is the mapping mechanism used by java to identify IDL language?
How do you use spaces in java?
Is an empty arraylist null?
How to print nodes of a Binary tree?
Are floats faster than doubles?
What is the reason behind using constructors and destructors?
can any body body expalin best definitions & best real time exaples for opps concepts.
Why java is used everywhere?
What is a locale?
Which collections are thread safe in java?
What are the types of exceptions?
Which data type is a class in java?