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

Is the ternary operator written x : y ? Z or x ? Y : z ?

1114


What value does read() return when it has reached the end of a file?

1033


What does module-relative mean?

1164


What is the relationship between the canvas class and the graphics class?

1044


Which textcomponent method is used to set a textcomponent to the read-only state?

1134


how do you Handle Front End Application data against DB with example?

1983


Which component handles cluster communication in jboss?

1113


Name three component subclasses that support painting?

1081


Difference between hashmap and hashtable?

1156


What is the infobus?

1093


How many times may an objects finalize() method be invoked by the garbage collector?

1091


What is RMI and what are the services in RMI?

1173


What method is invoked to cause an object to begin executing as a separate thread?

1040


Why won’t the jvm terminate when I close all the application windows?

1247


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

1094