logo

CuriousTab

CuriousTab

Discussion


Home Interview Technology Comments

  • Question
  • What is final method?


  • Correct Answer
  • Final method is a method defined in the super class with final modifier We cannot overriding final method of super class in the sub class EX: Class Sample { final void funOne() { } void funTwo() { } } Class Sub extends Sample { void funOne() { // overriding is not allowed } viod funTwo() { //overriding is allowed } } 


  • Technology problems


    Search Results


    • 1. What is the use of overloading ? or why overloading?
    • Discuss
    • 2. What is the use of overriding?
    • Discuss
    • 3. If super class ref is pointing sub class object then by using super class ref is it possible to call sub class newly defined method?
    • Discuss
    • 4. What is the use of super call?
    • Discuss
    • 5. What is the difference between path and classpath?
    • Discuss
    • 6. What is the purpose of overriding toString() method?
    • Discuss
    • 7. why overriding finalize() method?
    • Discuss
    • 8. What is the use of tostring() method?
    • Discuss
    • 9. why protected modifier?
    • Discuss
    • 10. What is abstract method?
    • Discuss


    Comments

    There are no comments.

Enter a new Comment