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  >>  Core 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
what is main purpose of abstract class?
 Question Submitted By :: Chandranallam
I also faced this Question!!     Rank Answer Posted By  
 
  Re: what is main purpose of abstract class?
Answer
# 1
if a class contains abstract method,that class must be
declared as a abstract class. abstract methods contains only
declarations. it does not contain objects.
 
Is This Answer Correct ?    3 Yes 3 No
Rakesh@crr
 
  Re: what is main purpose of abstract class?
Answer
# 2
In Inheritance , class become more general and more
abstract.Ancestor classes are more general, i.e more basis
for other classes.Abstract classes can have fields and
concrete methods.Methods are declared not defined so we can
not create objects. but we can create object variables of an
abstract class. but such variable must refer to an object of
a nonabstract subclass.
 
Is This Answer Correct ?    0 Yes 0 No
Harshavardhan
 
 
 

 
 
 
Other Core Java Interview Questions
 
  Question Asked @ Answers
 
In what type of containers, Border layout is a default layout?  3
Which method will get invoked first in a stand alone application?  1
Why can't we make jsp as a controller and action servlet in struts? TCS6
What is the catch or declare rule for method declarations?  1
can we have virtual functions in java? Wipro7
What is the difference between overloading and overriding a function? Infosys7
What is JIT ? Satyam4
which class to use when concatenating strings in a loop. IBM2
I have one Shopping cart application, i that i have selected some items, while clicking submit button by mistake i have clicked twice or trice, that time items are selected twice or trice. Actually i want only one copy of items but its selected twice or trice. So how can we avoid this problem? Honeywell2
Can a Byte object be cast to a double value?  2
What is the difference between abstract class and interface?  2
Who developed JScript language?  3
What is AppletStub?  1
What is Three tier architecture. Can anyone explain with a Ordinary web application Project? (JSP,Servlets,JAVA,DAO) ? TCS1
How the threads are synchronized? BMC2
Why we can not force Garbage Collection?  5
How OOPS concept is achieved in Java? JPMorgan-Chase4
can we have function for truncating the sign as like abs in oracle.  1
why abstract class will have a constructor?  3
Difference between Array and vector?  4
 
For more Core 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