logo

CuriousTab

CuriousTab

Discussion


Home Interview Technology Comments

  • Question
  • What is the difference between method overriding and overloading?


  • Correct Answer
  • Overriding is a method with the same name and arguments as in a parent, whereas overloading is the same method name but different arguments 


  • Technology problems


    Search Results


    • 1. If a method is declared as protected, where may the method be accessed?
    • Discuss
    • 2. What do you understand by private, protected and public?
    • Discuss
    • 3. What is Thread ?
    • Discuss
    • 4. What is the difference between creating a thread by extending Thread class and by implementing Runnable interface? Which one should prefer?
    • Discuss
    • 5. What are the the different ways for creating a thread?
    • Discuss
    • 6. What is classloader?
    • Discuss
    • 7. What will be the output of the following code snippet? Object s1 = new String("Hello"); Object s2 = new String("Hello"); if(s1 == s2) { System.out.println("s1 and s2 are =="); }else if (s1.equals(s2)) { System.out.println("s1 and s2 are equals()"); }
    • Discuss
    • 8. What is JDBC ?
    • Discuss
    • 9. What is DriverManager ?
    • Discuss
    • 10. What is a ResultSet ?
    • Discuss


    Comments

    There are no comments.

Enter a new Comment