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


Please Help Members By Posting Answers For Below Questions

What is the difference between serializable and externalizable interfaces?

569


Write a program to print 15 random numbers using foreach of java 8?

543


Implement two stacks using a single array.

571


Explain the private protected method modifier?

546


From the two, which would be easier to write: synchronization code for ten threads or two threads?

615






Does sprintf add a null terminator?

562


Difference between nested and inner classes ?

608


Which is better ascii or unicode?

568


Why java is platform independent? Explain.

601


What is break and continue statement?

614


How the metacharacters are different from the ordinary characters?

564


What are the characteristics of java?

525


Difference between this() and super() in java ?

613


Is java a prime method?

550


How to instantiate static nested classes in java?

564