explain System.out.println
Answer Posted / gov@
println() is method belongs to the printstream class.
How we can call a method in java? using object of the class to which the method belongs to.now out is the object of the printstream class,so we can call println() method using out.println(),now System.out.println(),here system is the class name [we know static members of a class can be accessed using classname.methodname or classname.members)since out is not a method so the object can be declared as a static variable of System class.
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What do you understand by weak reference?
How many classes can any class inherit java?
How do you use nextline in java?
What is a cup of java?
Why is multiple inheritance not supported in java?
What is the use of java?
What is java util hashmap?
What is static data type in java?
What does .equals do in java?
Why do people says “java is robust”?
What does sizeof return?
Can a method inside a interface be declared as final?
What is a generic code?
Does a class inherit the constructors of its superclass in java programming?
What is difference between this and super keyword?