ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
tip   SiteMap shows list of All Categories in this site.
Google
 
Categories  >>  Software  >>  Advanced Java  >>  Java J2EE  >>  Java Related
 
 


 

 
 Core Java interview questions  Core Java Interview Questions
 Advanced Java interview questions  Advanced Java Interview Questions
 Swing interview questions  Swing Interview Questions
 EJB interview questions  EJB Interview Questions
 Servlets interview questions  Servlets Interview Questions
 Struts interview questions  Struts Interview Questions
 JDBC interview questions  JDBC Interview Questions
 JMS interview questions  JMS Interview Questions
 SunOne interview questions  SunOne Interview Questions
 J2EE interview questions  J2EE Interview Questions
 Weblogic interview questions  Weblogic Interview Questions
 Websphere interview questions  Websphere Interview Questions
 Java Networking interview questions  Java Networking Interview Questions
 Java J2EE AllOther interview questions  Java J2EE AllOther Interview Questions
Question
Can you write Java code for declaration of multiple
inheritance in Java ?
 Question Submitted By :: Supreeth
I also faced this Question!!     Rank Answer Posted By  
 
  Re: Can you write Java code for declaration of multiple inheritance in Java ?
Answer
# 1
Class C extends A implements B
 
Is This Answer Correct ?    0 Yes 0 No
Supreeth
 
  Re: Can you write Java code for declaration of multiple inheritance in Java ?
Answer
# 2
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 ?    0 Yes 0 No
Basavaraj
 
 
 
  Re: Can you write Java code for declaration of multiple inheritance in Java ?
Answer
# 3
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 ?    1 Yes 0 No
Manjula
 
  Re: Can you write Java code for declaration of multiple inheritance in Java ?
Answer
# 4
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 ?    1 Yes 0 No
Raghu
 

 
 
 
Other Advanced Java Interview Questions
 
  Question Asked @ Answers
 
difference between applicationserver and webserver SolutionNET2
What is the use of Class.forName HCL8
what is difference between checked exception & unchecked exception in java?  1
What is meant by multi-threading?  2
what is a dirty read?  1
How is serialization used generally ?  2
How can a dead thread be restarted? Wipro1
how the mapping can be done from jsp to actionservlet? SolutionNET1
What are different types of layout managers in java.awt package?  1
Is 'synchronised' a modifier?  1
To make an object to begin executing as a separate thread, what method is used?  2
What is waiting state? In what ways a thread can enter into waiting state? Wipro2
Can a thread be a member of another thread?  1
What is source and listener?  1
What is meant by Superconductivity?  1
How many requests can a server fetch at a time?  1
whether the connectionpooling used in struts? SolutionNET1
whats is mean by connectionpooling SolutionNET1
How two threads will communicate with each other?  1
In howmany ways a thread can be created? HCL2
 
For more Advanced Java Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com