Why cant we define System.out.println() inside a class
directly?
Answer Posted / shahid
because println method is not abstract method it is method
of output stream class so we cant override.and it is just
overloded method.
Is This Answer Correct ? | 3 Yes | 3 No |
Post New Answer View All Answers
How many bytes is string in java?
How do you make an arraylist empty in java?
What package is math in java?
How many bytes is a url?
How to make a class or a bean serializable?
What is the purpose of static methods and variables?
What is a parameter in simple terms?
define polymorphism in java
What is a parameter in java?
How do generics work in java?
What is constructor and virtual function? Can we call a virtual function in a constructor?
How we can run a jar file through command prompt in java?
Give few examples of final classes defined in Java API?
enlist some features of jdk.
What are different types of references?