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
Can you declare an interface method static?
What is the difference between equals() and == in java?
What is a local, member and a class variable?
What is the use of parseint in java?
Make a data structure and implement an algorithm to print all the files in a directory. (The root directory can have sub-directories too.)
What is callablestatement? How you can call stored procedure to pass in parameter?
What is an example of a constant variable?
Java is pass by value or pass by reference? Explain
Is array serializable java?
how to create multithreaded program? : Java thread
Write a program to reverse a number in java?
How to sort elements in a parallel array in java?
What is the r character?
What is bigger kb or mb?
What is this () in java?