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 benefit of inner classes in java?
What is the difference between the final method and abstract method?
what is ststic with example
Is a case study a method or methodology?
How many types of methods are there in java?
What is the difference between a checked and an unchecked exception?
Which collection is sorted in java?
What is string variable?
How do you find the maximum number from an array without comparing and sorting?
Explain with example the concept of constant variable in java.
How do you read a char in java?
What about features of local inner class?
Where is stringbuffer stored?
What is one third plus one third as a fraction?
Explain enumeration in java?