Advertisements
Advertisements
प्रश्न
The interface in Java is a mechanism to achieve ______.
विकल्प
encapsulation
overriding
polymorphism
abstraction
MCQ
रिक्त स्थान भरें
Advertisements
उत्तर
The interface in Java is a mechanism to achieve abstraction.
Explanation:
In the Java programming language, an interface is defined as. An abstract type defines the behavior of a class. In Java, it is used for abstraction and multiple inheritance. In Java, interfaces serve as a tool for abstraction.
shaalaa.com
क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
2021-2022 (March) Official Board Paper
