logo

CuriousTab

CuriousTab

Discussion


Home Interview Technology See What Others Are Saying!
  • Question
  • What is the difference between an Interface and an Abstract class ?


  • Correct Answer
  • 1Main difference is methods of a Java interface are implicitly abstract and cannot have implementations A Java abstract class can have instance methods that implements a default behavior 2Variables declared in a Java interface is by default final An abstract class may contain non-final variables 3Members of a Java interface are public by default A Java abstract class can have the usual flavors of class members like private, protected, etc 4Java interface should be implemented using keyword ?implements?; A Java abstract class should be extended using keyword ?extends? 5An interface can extend another Java interface only, an abstract class can extend another Java class and implement multiple Java interfaces 6A Java class can implement multiple interfaces but it can extend only one abstract class 7Interface is absolutely abstract and cannot be instantiated; A Java abstract class also cannot be instantiated, but can be invoked if a main() exists 8In comparison with java abstract classes, java interfaces are slow as it requires extra indirection 


  • More questions

    • 1. Who is responsible for maintaining the Accounts receivable in an organization?
    • Discuss
    • 2. What are the components of DataStage?
    • Discuss
    • 3. Credit sales are recorded as

    • Options
    • A. Accounts Receivable
    • B. Accounts Payable
    • C. Both A & B
    • D. None of the above
    • Discuss
    • 4. Which of the following is not a function of a Warehouse?

    • Options
    • A. Ensuring Profit
    • B. Stabilisation in price
    • C. Risk-bearing
    • D. Storage
    • Discuss
    • 5. What is commercial Bank ?
    • Discuss
    • 6. Which of the following are elements of SQL?

    • Options
    • A. base-table-identifier ::= user-defined-name
    • B. base-table-name ::= base-table-identifier
    • C. boolean-primary ::= comparison-predicate
    • D. All the above
    • Discuss
    • 7. State Bank of India recently launched 'SBI Exclusif'. It is a ____ product.

    • Options
    • A. Wealth Management
    • B. Loan
    • C. Mutual Fund
    • D. Insurance
    • Discuss
    • 8. Describe the use of PL/SQL table?
    • Discuss
    • 9. Name any three PL/SQL exceptions?
    • Discuss
    • 10. Which one of the following sorts rows in SQL?

    • Options
    • A. ORDER BY
    • B. GROUP BY
    • C. SORT BY
    • D. ALIGN BY
    • Discuss


    Comments

    There are no comments.

Enter a new Comment