Define interface in java?
Answer / Balram
In Java, an Interface is a reference type that contains abstract methods (methods without bodies) and constant variables. It provides a contract to which implementing classes must adhere. Interfaces allow multiple inheritance in Java by allowing a class to implement multiple interfaces. They are used for defining behavioral contracts, promoting loose coupling between objects, and enabling polymorphism.
| Is This Answer Correct ? | 0 Yes | 0 No |
What are wrapped classes in java programming?
What is map and hashmap in java?
Can we assign null to double in java?
What is java algorithm?
can u handle an error if u write Thowable in the catch class lise try { some errorneous code }catch(Throwable e){ ...}
Why is static used?
What is the point of polymorphism java?
Explain features of interfaces in java?
What about interrupt() method of thread class ?
How do I know if java is installed?
explain the concept of virtual method invocation in polymorphism in detail?
Explain Global variables in Packages?