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 intern method in java?
What is the default size of load factor in hashing based collection?
What is the difference between array and array list in java?
can java object be locked down for exclusive use by a given thread? : Java thread
What are the application of stack?
What is singleton class in ruby?
What is independent and dependent variables in research?
What is the base class of all classes?
From the two, which would be easier to write: synchronization code for ten threads or two threads?
What occurs when an object is constructed?
Do you need to import math in java?
How is hashcode calculated in java?
How do you implement tree mirroring in java?
In java, how many ways you can take input from the console?
How many static init can you have?