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
How do you convert boolean to boolean?
When a lot of changes are required in data, which one should be a preference to be used? String or stringbuffer?
Which method must be implemented by all threads?
What is the difference between a field variable and a local variable?
What are static variables and functions?
What does java final mean?
What is a programming object?
What are the types of inner classes (non-static nested class) used in java?
What are the rules for naming an array?
Does java support function overloading, pointers, structures, unions or linked lists?
Is sizeof a keyword in java programming?
Explain the advantages of packages in java?
What is a short in java?
Can you extend singleton class?
What is the difference between double and float variables in java?