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 is finalize() function in java?
How can you generate random numbers in java?
What is nested interface?
What are 4 pillers of object orinted programming?
Difference between this() and super() in java ?
What are byte codes?
What is difference between pointer and reference?
How can you handle java exceptions?
Explain about interrupt() method of thread class ?
What is jpa specification?
What is a arraylist in java?
What are synchronized methods ?
why java uses class level type casting ?
Is java call by value?
What is the range of the short type?