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

What is widening and narrowing in java? Discuss with an example.

756


What is currentthread()?

755


If a method is declared as protected, where may the method be accessed in java programming?

696


What is the difference between procedural and object-oriented programs?

713


How do you compare characters in java?

715


Explain why wait(), notify() and notifyall() methods are in object class rather than in the reading class?

742


What is an example of a constant variable?

772


5 Coding best practices you learned in java?

813


Does java list allow null?

745


What are the types of methods in java?

767


How are the elements of a gridbaglayout organized in java programming?

729


Is java a security risk?

784


What is finalize()? Is finalize() similar to a destructor?

730


What is reverse function?

778


Can a method be static?

720