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
What is string immutability?
What are annotations in java?
What are the types of literals?
What technique is carried out to find out if a particular string is empty?
Can we execute a program without main() method?
Can we override private constructor in java?
What is package private scope in java?
What is byte value?
What are the two types of streams offered by java 8?
how to run ecllipse with jettyserver for windows environment using batch file
Explain about join() method?
How big is a 64 bit float?
Can a top level class be private or protected?
What is wrapper class html?
What is concurrent hashmap and its features?