Yes/No Java Interview Questions

1. Can the main() method be overridden?

NO

2. Can a static method be overridden?

NO

3. Can we write a try and catch block inside the constructor?

YES


4. Can finally block be used without catch?


YES.


Note: But we should add try 


5. Can the main method be overloaded


YES.


6. Can a static method be overloaded?


YES.


7. Can we compile and run the java program without main()?


YES


8. can we overload the constructor?


YES


9. Can we override the constructor?


NO.


10. Does Java support multiple inheritances?


NO


11. Can the private method be overloaded?


YES


12. Can the private method be OVERRIDDEN?


NO


Comments

Popular Posts