Java Abstraction MCQs 1 l Top 20 Java Abstraction Questions and Answers l Javatpoint

preview_player
Показать описание
Java Abstraction MCQs 1 #java #javatpoint #javaprogramming #javaabstraction
Java Abstraction is a mechanism of hiding the implementation details and showing only the necessary information to the user. It can be achieved through abstract classes and interfaces.

Abstract classes cannot be instantiated and are used as a base class for other classes. Interfaces define a contract that must be implemented by the implementing classes. Abstraction helps in achieving encapsulation and modularity in code, making it easier to maintain and modify. It also helps in achieving a higher level of security in code by restricting access to sensitive information.
Рекомендации по теме
Комментарии
Автор

super me to think a lot regarding especially about abstract class and anonymous class /implementations.Thank you sir.

giriprasadp
Автор

if u provide explanation for Every question it will be helpful.

chinmayjain
Автор

I doubt the 10th questions answer, because abstract class cant only have abstract methods, we cant define them inside abstract class.

RahulGupta-lyuu
Автор

question 9 option is wrong.
abstract class can't implement multiple inheritance

chinmayjain