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 the difference between serializable and externalizable interfaces?
Write a program to print 15 random numbers using foreach of java 8?
Implement two stacks using a single array.
Explain the private protected method modifier?
From the two, which would be easier to write: synchronization code for ten threads or two threads?
Does sprintf add a null terminator?
Difference between nested and inner classes ?
Which is better ascii or unicode?
Why java is platform independent? Explain.
What is break and continue statement?
How the metacharacters are different from the ordinary characters?
What are the characteristics of java?
Difference between this() and super() in java ?
Is java a prime method?
How to instantiate static nested classes in java?