Answer Posted / basireddy
interface is used when we want all the methods implement
the methods differnetly in different situations.
Abstract class
We also use abstract classes to override the
abstract methods that it contains.Otherwise the child class
will mentioned as abstract.
| Is This Answer Correct ? | 6 Yes | 3 No |
Post New Answer View All Answers
How static variable work in java?
Why do we need array in java?
how is final different from finally and finalize in java?
Does constructor be static?
What are the differences between wait() and sleep()?
what methods would you overwrite in java.lang.object class?
How do you use substring in java?
Convert a BST into a DLL and DLL to BST in place.
What is difference between path and classpath in java?
Can we use a default constructor of a class even if an explicit constructor is defined?
What is the purpose of a volatile variable?
Write a program to reverse array in place?
What is supplier in java?
Can we use string in the switch case?
How many types of keywords are there?