Why cant we define System.out.println() inside a class
directly?
Answer Posted / venkatachalapathy
we Directly write this line i.e System.out.println()
directly inside a class because println method is static
method in output stream class which are sub classes of
system class.
so every time this method is overridden in our program....
so static methods doesnt require a creation of object.....
| Is This Answer Correct ? | 3 Yes | 3 No |
Post New Answer View All Answers
What is a boolean in java?
What is the difference between logical data independence and physical data independence?
Explain how can you debug the Java code?
How many days will it take to learn java?
Do you know how to reverse string in java?
Is void a wrapper class?
Can you make a constructor final in Java?
What does opcode mean?
What is byte [] in java?
Java is pass by value or pass by reference? Explain
Can you explain inner class.
What is a "pure virtual" member function?
What is difference between ++ I and I ++ in java?
How does finally block differ from finalize() method?
What is skeleton and stub?