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 string example?
Name few java 8 annotations ?
Why java is called not pure object oriented language?
What is boolean used for?
What is the default size of load factor in hashing based collection?
Write a code to show a static variable?
How do you sort in ascending order in java?
Which api is provided by java for operations on set of objects?
Explain the transient field modifier?
Why doesn't the java library use a randomized version of quicksort?
What is private static class in java?
What are the difference between composition and inheritance in java?
What is instance example?
What are runtime exceptions?
Which oo concept is achieved by using overloading and overriding?