Answer Posted / debapriya patra
Interface:
Through interface we get the multiple inheritance
in java.And we implement interfaces to override the
abstract methods it contains.
Abstract class:
We also use abstract classes to override the
abstract methods that it contains.Otherwise the child class
will mentioned as abstract.
If we wants to prevent a class from instantiation then we
mentioned it as abstract.
Is This Answer Correct ? | 25 Yes | 18 No |
Post New Answer View All Answers
Suppose if we have variable ' I ' in run method, if I can create one or more thread each thread will occupy a separate copy or same variable will be shared?
What does string mean in java?
What is anti pattern in programming?
What is the difference between import java.util.date and java .util?
Does java allow overriding static methods ?
What is Recursion Function?
How to sort a collection of custom Objects in Java?
Is integer immutable in java?
Difference between concurrent hashmap and hashtable and collections
Can we sort arraylist in java?
What is Applet Stub Interface ?
Can we create an object if a class doesn't have any constructor ( not even the default provided by constructor ) ?
Explain the features of interfaces in java?
How do you remove spaces in java?
What makes a function well defined?