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 ?

Answers were Sorted based on User's Feedback



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

Answer / supreeth

Class C extends A implements B

Is This Answer Correct ?    19 Yes 2 No

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

Answer / raghu

Hi yes multiple inheritance is possible in Java through
interface.

class A extends B implements interface 1....n

interface a extends interface b.... n.

Is This Answer Correct ?    15 Yes 2 No

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

Answer / 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

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

Answer / suresh

yes i can by using interfaces it is posible

Is This Answer Correct ?    0 Yes 0 No

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

Answer / vikas jaiswal

mainly there is no multiple inheritance in java...
but we can make our program to work like multiple inheritance and it is possible via interface..

interface is blue print of class,it is used to achieve fully abstraction and multiple inheritance in java.

java compiler adds public and abstract keyword before the interface method and public static and final keyword before data members.you can see this via decompile the class.

an interface extends another interface.

class MyClass implements MyInterface1,MyInterface2{}
OR
class MyClass extends ParentClass implements MyInterface1{}

Is This Answer Correct ?    0 Yes 0 No

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

Answer / basavaraj

s....u can do....

i think u can do by..

writing innerclass n impementing interface...

class A extends B
{
class test2{
}

}


here, test2 is innerclass which can inherits the properies
of A as well as B...

Is This Answer Correct ?    5 Yes 8 No

Post New Answer

More Advanced Java Interview Questions

What is the difference between session and entity beans?

0 Answers  


What happens when a thread cannot acquire a lock on an object?

0 Answers  


Can you control when passivation occurs?

0 Answers  


What is a tasks priority and how is it used in scheduling?

0 Answers  


What restrictions are placed on the values of each case of a switch statement?

0 Answers  


What is Bootstrapping in RMI?

1 Answers  


advantage of thread?

3 Answers   HCL,


Difference between hashmap and hashtable?

0 Answers  


when A client sent a request to the server to open facebook page and close the browser after this request .at that time the same user do login by using a different browser then that session id will exist or not for the same client??

0 Answers   Ducat,


Hi frnds ,iam new to java and j2ee ,my requirement is using java or any j2eetech how to lock an user when he enter wrong credentials(uname&password) more than 3 times.take the username and passowrd in a bean no need to conned Db kindly provide me sample application code or and ideas or links or tutorials plzzzzz urgent for me thanks in advance...

2 Answers   NSN,


what are JSP tags? what is difference between include action and directory?

0 Answers   ADP,


Are there books about seam?

0 Answers  


Categories