Question
What is the Multiple inheritance in Java by interface

Answers

If a class implements multiple interfaces, or an interface extends multiple interfaces i.e. known as multiple inheritance
Interface

interface Printable{
void print();
}

interface Showable{
void show();
}

class A7 implements Printable,Showable{

public void print(){System.out.println("Hello");}
public void show(){System.out.println("Welcome");}

public static void main(String args[]){
A7 obj = new A7();
obj.print();
obj.show();
}
}

Output: Hello
Welcome   Your Comment




More Software,Java Questions..
What is the inputsplit in map reduce software?

Can variables be used in Java without initialization?

What is the difference between java bean and enterprise java bean?

What is software configuration management?

How does the java database connectivity (jdbc) work?

What are the advantages of threads in java?

What Is Java Api For Xml-based Rpc (jax-rpc)?

How can you implement fine-grained auditing?

What is IBM’s simple explanation for Big Data’s four critical features?

What is static synchronized method in JDBC API? Give an example?

What does the NULLIF function do?

What happens if a start method is not invoked and the run method is directly invoked?

Should we override finalize method

what is the difference between mysql_fetch_array and mysql_fetch_object?

How will XML affect my document links?

What is object cloning in Java?

Why to use Style Sheets?

What are Filters in MVC?

Can you explain Application layer in OSI model?

How to define new testplan attributes?



Search
Can you Answer!!
  • Q Elaborate on the molecular basis of Antibody Diversity. Write a note on class switching.
  • Q The second largest terrestrial mammal:
  • Q How does the ahu work?
  • Q How will you load a specific locale?
  • Q If you are involved in an accident where your vehicle needs to be towed away and the police does not attend the crash scene, you?
  • Q The Slave of Duty is alternate title what G&S operetta
  • Q What are the various etl tools in the market?
  • Q Explain how can you build customer loyalty?
  • Q How teacher can make teaching effortless?
  • Q After working all night and successfully configuring a Cisco router for the Certkiller network you save your changes on the startup configure, reboot the router, and go out for a cigarette. When you return, none of your changes are active and the router boots to the initial configuration mode! Which of the choices below indicates the source of your problem? A. Hardware failure in NVRAM prevents the router from loading the config B. Startup-config in flash is corrupt and cannot be analyzed C. Router configuration-register set to bypass startup configuration D. Startup-config in NVRAM is corrupt and cannot be analyzed E. None of the above
  • Q Shakespeare lived _____ the reigns of Elizabeth I and James I.