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

What is the difference between ear, jar and war file?

1066


Which characters may be used as the second character of an identifier, but not as the first character of an identifier?

998


what is handle?

2315


What is the difference between java class and bean?

1028


What are the purpose of introspection?

1165


What are JTA/JTS and how they used by client?

2175


What is the RMI and Socket?

1012


What are various types of class loaders used by jvm?

931


What is the purpose of the notifyall() method?

988


What is difference between object state and behavior?

1040


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

1018


Explain the difference between object state and behavior?

995


Is jvm a overhead?

1035


What is the difference between the font and fontmetrics classes?

1083


Define prototype?

999