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   To Refer this Site to Your Friends   Click Here
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
is memory to the abstract class allocated ..or objects not
instantiated
 Question Submitted By :: Rishu Gupta
I also faced this Question!!     Rank Answer Posted By  
 
  Re: is memory to the abstract class allocated ..or objects not instantiated
Answer
# 1
no,since we cannot instantiate objects for an Abstract class
memory is not allocated for an abstract class
 
Is This Answer Correct ?    0 Yes 0 No
Swetha
 
  Re: is memory to the abstract class allocated ..or objects not instantiated
Answer
# 2
For abstract classes we can't create an object  directly
with the help of the new operator.So memory is not allocated
for abs classes.
 
Is This Answer Correct ?    0 Yes 1 No
Sekhar
 
 
 
  Re: is memory to the abstract class allocated ..or objects not instantiated
Answer
# 3
but according to my understanding ,objects of abstract
variables are create but memory can't be allocated as.the
memory of this points to null..we can say tht.objects of
abstract class can't be created.. am i right?
 
Is This Answer Correct ?    0 Yes 1 No
Rishu
 
  Re: is memory to the abstract class allocated ..or objects not instantiated
Answer
# 4
for abstract class in java can not be directly instantiated 
with new operator Because abstract class is not fully 
defined.ie,it's meaningless to implement incomplete class 
and Since "classname var =new classname();" is responsible 
for allocating the memory ,hence there will be no memory or 
object will be instantiated for abstract class.
But we can make reference to abstract class.
example Box b1;
 
Is This Answer Correct ?    1 Yes 0 No
Garima
 

 
 
 
Other Core Java Interview Questions
 
  Question Asked @ Answers
 
whats the life cycle of jsp Satyam10
what is j2se  3
what is finalmethod & final variable with example? HP2
What is adapter class?  2
what's diff between struts 1.1 & 1.2 Wipro2
what is mean by String and StringBuffer? What is mean by Methooverriding and Overloading? Satyam2
whats the diff between jsp and servlets? HCL9
What is a reflection package?  2
Difference between String and StringBuffer. IBM3
Can an unreachable object become reachable again?  3
In the HashMap, we know the values but we dont know the key, then how can we get the key from HashMap ????? Kanbay3
types of applets?. TCS3
How the elements are organized in BorderLayout?  4
To obtain design information about an object, which class in used?  1
Is JRE required to compile Java files ? HCL3
what is difference between perfom() & excute() ? IBM2
What is the purpose of finalization?  3
is java support call by reference and call by value, if supports please explain?  3
explain System.out.println IBM41
What is the frontend and backedn in Java? TCS2
 
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