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
Why singleton pattern is better than creating singleton class with static instance?
Is java a super set of javascript?
What is the difference between Error, defect,fault, failure and mistake?
How do you get the length of a string in java?
How are the elements of a gridbaglayout organized in java programming?
How do you sort a list in java?
Is ++ operator thread-safe in java?
How do you invoke a method?
What does arrays sort do in java?
How to check if a list is sorted in java?
Why multiple inheritance is not supported by java?
What is numeric function?
What are the main concepts of oops in java?
What is array command?
What is the concatenation operator in java?