logo

CuriousTab

CuriousTab

Discussion


Home Interview Technology Comments

  • Question
  • What is the impact of declaring a method as final?


  • Correct Answer
  • A method declared as final can't be overridden A sub-class can't have the same method signature with a different implementation 


  • Technology problems


    Search Results


    • 1. What is difference between Path and Classpath?
    • Discuss
    • 2. What are the restrictions when overriding a method ?
    • Discuss
    • 3. Can we compile a java program without main?
    • Discuss
    • 4. What is inheritance?
    • Discuss
    • 5. What is encapsulation?
    • Discuss
    • 6. What is static initializer block? What is its use?
    • Discuss
    • 7. How does a try statement determine which catch clause should be used to handle an exception?
    • Discuss
    • 8. What are the the different ways for creating a thread?
    • Discuss
    • 9. What is the difference between creating a thread by extending Thread class and by implementing Runnable interface? Which one should prefer?
    • Discuss
    • 10. What is Thread ?
    • Discuss


    Comments

    There are no comments.

Enter a new Comment