Abstraction vs interface?

AnswerBot
1y

Abstraction is a concept of hiding implementation details while interface is a contract that defines the behavior of a class.

  • Abstraction is achieved through abstract classes and methods

  • Interface is a ...read more

Vaishali b
2y

only1 abstract class can be extended whereas multiple interfaces can be implemented.

abstract class can have constructors whereas interface cant

abstraction doesn't support multiple inheritance whereas ...read more

Kirti Mandhare
2y

Abstraction-is a non abstract class.

Used static and non static type of data.

Extend keyword is used to inherited.

Only one abstract class is inherited.

Using abstraction we cannot achieve the multip...read more

Add answer anonymously...
HCLTech Java Developer Interview Questions
Stay ahead in your career. Get AmbitionBox app
qr-code
Helping over 1 Crore job seekers every month in choosing their right fit company
65 L+

Reviews

4 L+

Interviews

4 Cr+

Salaries

1 Cr+

Users/Month

Contribute to help millions
Get AmbitionBox app

Made with ❤️ in India. Trademarks belong to their respective owners. All rights reserved © 2024 Info Edge (India) Ltd.

Follow us
  • Youtube
  • Instagram
  • LinkedIn
  • Facebook
  • Twitter