logo

CuriousTab

CuriousTab

Discussion


Home Interview Technology Comments

  • Question
  • What is the difference between an Interface and an Abstract class?


  • Correct Answer
  • An abstract class can have instance methods that implement a default behavior An Interface can only declare constants and instance methods, but cannot implement default behavior and all methods are implicitly abstract An interface has all public members and no implementation An abstract class is a class which may have the usual flavors of class members (private, protected, etc), but has some abstract methods 


  • Technology problems


    Search Results


    • 1. Is the JDBC-ODBC Bridge multi-threaded ?
    • Discuss
    • 2. What are the different JDBC drivers available ?
    • Discuss
    • 3. What is a ResultSet ?
    • Discuss
    • 4. What is DriverManager ?
    • Discuss
    • 5. What is JDBC ?
    • Discuss
    • 6. What is the purpose of garbage collection in Java, and when is it used ?
    • Discuss
    • 7. What are pass by reference and passby value ?
    • Discuss
    • 8. Difference between Swing and Awt ?
    • Discuss
    • 9. What is synchronization and why is it important ?
    • Discuss
    • 10. What are wrapped classes ?
    • Discuss


    Comments

    There are no comments.

Enter a new Comment