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 does sizeof return?
what is object slice?
Is a char always 1 byte?
According to java operator precedence, which operator is considered to be with highest precedence?
Explain thread life cycle in java?
What are the various access specifiers in java?
Explain the use of shift operator in java. Can you give some examples?
How do you define a singleton class?
How many types of the indexof method are there for strings?
Can the interface be final?
How is string stored in java?
Why we use set in java?
Why are getters and setters used?
In how many ways we can do synchronization in java?
How does java pattern compile work?