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...

Java does not support multiple inheritance.
how interface helps in the same?

Answer Posted / naseer

In java through interface we can acheive multiple inheritence.but not class. class can extend only one class

suppose if class A has one method m1() and class B has method m1() there are two diffrent implementaion whenver we can extends two class here some confusions ..A class has diffeent implementaion and B class has diffrent implementation.


suppose interface A has one method m1() and inteface B has one method m1() whenever interface extend two interfaces common method will be there we can override any method beacuase here implementaion is common for both methods


in classse implementaion is diffreent for both methods

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the two parts of a conditional statement?

994


Can an interface extend another interface?

1104


What is default size of arraylist in java?

1221


How many functional interfaces does java 8 have?

1072


What is Garbage Collection in Java

1119


What is unmodifiable list in java?

995


Do you need to import math in java?

1055


what methods would you overwrite in java.lang.object class?

1060


What is the use of using enum to declare a constant?

1077


In java, how many ways you can take input from the console?

1038


What is polymorphism java example?

1062


How many bytes is 255 characters?

1031


How does system arraycopy work in java?

1180


What is immutability in java?

1130


Can you write a java class that could be used both as an applet as well as an application?

999