Can you write Java code for declaration of multiple
inheritance in Java ?

Answer Posted / raghu

Hi yes multiple inheritance is possible in Java through
interface.

class A extends B implements interface 1....n

interface a extends interface b.... n.

Is This Answer Correct ?    15 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is message driven beam?

581


What is the relationship between an event-listener interface and an event-adapter class?

554


Why a client should be multithreading? Explain.

591


What class is the top of the awt event hierarchy?

574


Brief description about local interfaces?

627






What are the design considerations while making a choice between using interface and abstract class?

541


Explain RMI Architecture?

606


Why is string immutable in java?

577


Do we need to override service() method

1139


Are enterprise beans allowed to use thread.sleep()?

647


Can I use multiple html form elements with the same name?

578


How a component can be placed on Windows?

2264


What is the purpose of the wait() method?

619


What if the static modifier is removed from the signature of the main method?

700


Can you give me a simple example of using the requiredif validator rule?

600