suppose we have an interface & that interface contains five
methods. if a class implements that interface then we have
to bound that to give tha definition of all five methods in
that class. If we declare that class as abstract then can
we call only two methods to give the deinition of that
method & i don't want to give the definition of all the
methods? can it possible
Answer Posted / sai hegde
It's possible that your abstract class implements one/all or
none of the interface methods. The concrete class that
extends your abstract class will have to provide
implementations for the methods that have not been
implemented in your abstract class.
| Is This Answer Correct ? | 1 Yes | 2 No |
Post New Answer View All Answers
What are the different ways to handle exceptions?
What is a dot notation?
What does indexof mean?
What is a singleton factory?
What is jrmp?
Explain the difference between abstraction and encapsulation.
How do you generate random numbers in java?
Describe 2 different ways to concatenate two strings.
What are class types in java?
what is heap memory?
How variables are declared?
What is scope of a variable?
Why we use multi threading instead of multiprocessing?
How do you use spaces in java?
Why wait and notify methods are declared in object class?