What we have to do, when we don't want to implement all
methods of an interface?

Answer Posted / mallikarjun

Use another called implementing interface and that class can
be inherited to sub class. This process is called adapter
pattern

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is break statement can be used as labels in java?

506


What is Mutex (Mutual Exclusion Object) ?

627


What do bitwise operators do?

527


What is package protected in java?

526


Can an interface have a class?

563






Can you start a thread twice in Java?

633


What is difference between variable declaration and definition?

515


In java, what is the difference between method overloading and method overriding?

581


What are the different access modifiers available in java?

560


What is time complexity algorithm?

548


Can we force the garbage collection to run?

536


Is it possible to override the main method?

533


What do you mean by append?

534


What is entry in java?

534


How do you square a number?

583