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
Explain about java sdk?
What is difference between jdk,jre and jvm?
When is an object subject to garbage collection?
When do I need to use reflection feature in java?
What is bufferedreader in java?
What is array list in java?
What is communist flag?
Can private method static?
What is main difference between variable and constant?
What is the difference between preemptive scheduling and time slicing?
What do you mean by default constructor in java?
Define array. Tell me about 2-D array.
What is the use of StringTokenizer class?
Can we have a method name same as class name in java?
How do you test a method for an exception using junit?