Answer Posted / harish
Interface is nothing but an unimplemented class. It
contains the method signatures. The method access
specifier may be abstract. The sub class should implement
all the methods, which are defined in the Interface. If
you don?t implement any method that class should be an
abstract class. Using Interface, It enforces the sub
classes to implement the same. So that, you can create an
instance of any sub class.
Is This Answer Correct ? | 8 Yes | 3 No |
Post New Answer View All Answers
Is array serializable java?
What is an example of procedure?
How garbage collection is done in java?
When arithmeticexception is thrown?
What is are packages?
How do you delete a list in java?
What is == mean?
What is bytecode in java ?
Difference between Linked list and Queue?
What is double checked locking in singleton?
What is the difference between the final method and abstract method?
What is an accessor?
Can we create an object of private class?
Explain what access modifiers can be used for variables?
Differentiate between nested and inner class in java.