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
What is the purpose of default constructor?
What are the high-level thread states in java programming?
Can a class be protected in java?
Why can't we override private static methods?
What is valid keyword in java?
What is an arraylist in java?
What are java packages? What is the significance of packages?
Is a boolean variable?
What is parsing in java?
Given a singly linked list, how will you print out its contents in the reverse order? Can you do it with consuming any extra space?
What are the types of web technologies?
Explain thread life cycle in java?
How to store image in arraylist in java?
What is += mean in java?
Is 0 a prime number?