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

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

Answer Posted / manjula

Multiple Inheritance is not allowed in java. Instead of
this, interfaces are used to implement multiple inheritance
concept.

syntax: interface interface_name
{
data & method declaration;
}

The interafaces in java always contain final fields and
abstract methods

Is This Answer Correct ?    11 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

For which statements does it make sense to use a label?

1134


What modifiers may be used with an inner class that is a member of an outer class?

1115


What are the diff types of exception?

1114


What is in-memory replication?

1129


What class is the top of the awt event hierarchy?

1156


Difference between hashmap and hashtable?

1223


What do you need to set-up a cluster with jboss?

1119


Do you think that java should have had pointers?

1122


What are the difference between RMI and CORBA?

1166


What is mdb and what is the special feature of that?

1105


why static class in java

1815


Can I have an action without a form?

1158


Do I need to import javlang package any time? Why ?

1148


What do you know about seam?

1123


Why are my checkboxes not being set from on to off?

1179