explain System.out.println
Answer Posted / anuram
System is a class. out is the object of PrintStream class .
println() is the instance method of PrintStream class.to
call that println() we need object of PrintStrem class but
the out is declared as static datamember of System class.So
to call println() befor we call static datamember out using
class name bcoz static datamember can be called by using
class name after that by using out object we can call println().
so System.out.println()
Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What is jit compiler in java?
What are the string methods in java?
Which is dependent variable?
How do you trim a space in java?
What are 4 pillers of object orinted programming?
What is the difference between static (class) method and instance method?
Is void a wrapper class?
Explain the difference between extends thread vs implements runnable in java?
What is the name of the java compiler?
Can you sort a string in java?
What is final method in java?
What happens if we don’t define serial version uid?
What is parsing and its types?
Why is stringbuffer not immutable?
What is the epoch date?