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
What is the major advantage of external iteration over internal iteration?
What is the purpose of tostring() method in java?
Which list does not allow duplicates in java?
What is namespace in java?
Does treeset use compareto?
Explain the inheritance?
Why does java have two ways to create child threads? Which way is better?
What are data types in programming?
If I don't provide any arguments on the command line, then what will the value stored in the string array passed into the main() method, empty or null?
What is set in java?
Is cout buffered?
Is array synchronized in java?
Detail discussions on JVM, memory management and garbage collector.
What is the use of toarray () in java?
Can we have multiple classes in a single file?