Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

Does Java support multiple Inheritance?

Answer Posted / divyesh chauhan

yes java do not support multiple inheritance but we can achieve multiple inheritance using concept of interface implementation in class
for e:g
interface my
{
public void show();
}
interface my1 extends my
{
void disp();
}
class child implements my1
{
public void show()
{
System.out.println("hello java");
}
public void disp()
{
System.out.println("hello disp");
}
public static void main(String...a)
{
my m1=new child();
m1.disp();
m1.show();
}
}

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is a case study a method or methodology?

854


Explain about public and private access specifiers?

981


Can a class extends itself in java?

980


How will you invoke any external process in java?

1055


What are the differences between processes and threads?

1001


Why bytecode is called bytecode?

1109


How many bits are used to represent unicode, ascii, utf-16, and utf-8 characters in java programming?

962


What is hash code collision?

1008


What do you mean by append?

991


What is difference between checked and unchecked exception in java?

965


Is vector synchronized in java?

941


What is your platform’s default character encoding?

1024


What does it mean that a class or member is final?

945


What do you mean by compiler?

999


Convert a BST into a DLL and DLL to BST in place.

1073