Skip to main content

Posts

Featured

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

Latest posts

final keyword

Maven Lifecycle

static keyword

this and super Keyword

Method Overloading and Method Overriding

Abstract Class vs Interface

TestNG Listeners

Difference Between String, String Buffer and String Builder

Java - What is constructor?

Lets get started with Java for QA