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 / srini
i think we can accomplish by using adapter design pattern.
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
Write a function to find out longest palindrome in a given string?
What is string pool in java?
Which variable is the independent variable?
Why for each loop is used?
Which sorting is best in java?
How do you override a method in java?
How to make a read-only class in java?
What is nextline method in java?
worst case complexities of Quick sort and Merge sort.
Can java list be null?
What is string variable?
What is private public protected in java?
Why is it called boolean?
what is interface in java? Explain
Is there any way to skip finally block of exception even if some exception occurs in the exception block?