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 are the loops in java?
How do you reverse sort a list in java?
What is consumer in java?
What does java edition mean?
How do you make an arraylist empty in java?
What are exception handling keywords in java?
Why chararray() is preferred over string to store the password?
What is the differences between c++ and java? Explain
What are identifiers in java?
Write a java program to print fibonacci series?
What is the purpose of the system class in java programming?
If you are given the name of the function at run time how will you invoke the function?
What is static and final keyword in java?
What are the practical benefits, if any, of importing a specific class rather than an entire package (e.g. Import java.net.* Versus import java.net.socket)?
What are different types of arrays?