GeekInterview.com
   Home |  Tech FAQ  |   Interview Questions |  Placement Papers |  Tech Articles |  Learn |  Freelance Projects |  Online Testing |  Geeks Talk |  Job Postings |  Knowledge Base | Site Search |  Add/Ask Question

  GeekInterview.com  >  Interview Questions  >  J2EE

 Print  |  
Question:  Java single inhertiance and multiple inheritance

Answer: 1.what is meant by inheritance,single inhertiance,multiple inheritance?2.define abstract class & abstract method?3.how to developed and delopying a SERVELT,JSP program in the TOMCAT APACHE SERVER,WEBLOGIC SERVER?PLZ send the answer for the particular abo


November 11, 2005 14:27:55 #6
 ashok.r   Member Since: Visitor    Total Comments: N/A 

RE: 1.what is meant by inheritance,single inhertiance,...
 

1.Inheritance is oops feature by which we can use the methods and functions of base class

2.Single Inheritance the type of inheritance where there is only one deriived class for base class

example:

public class derived imlements baseclass

3.multiple inheritance is the type of inheritance where there is one derived class for two base class.it is done using the help of interface and abstract class

example:

public class derived extends abstract implements inter

3.Abstract Class

abstact class are class which are used in inheritance.The abstract class have the keyword abstract.in abstract class we can declare the method using the keyword

abstract functionname();

4.Get

this method is used in servlets where the information fed by user is transmitted as query string

Post:

 this method is used in servlets where the information fed by user is transmitted after encryption.

     

 

Back To Question