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       Ask Questions on ANYTHING, that arise in your Daily Life at     FORUM9.COM
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
why the abstract class has default constructor?
 Question Submitted By :: Sushil
I also faced this Question!!     Rank Answer Posted By  
 
  Re: why the abstract class has default constructor?
Answer
# 1
A class has a constructor so that when an instance of the
class is created, the fields of the class can be setup to a
initial valid state.

Abstract classes define partial implementation of a public
contract. Which means that it may implement some of the
methods and contains partially implemented methods that are
marked abstract.

Since abstract classes can have partial implementation and
such partial implementation can include fields of the class,
a constructor becomes necessary so that those fields are
initialized to a valid default state when they are created
thru the constructor of their concrete subclasses.
 
Is This Answer Correct ?    6 Yes 2 No
Ranganathkini
 

 
 
 
Other Core Java Interview Questions
 
  Question Asked @ Answers
 
What is meant by event handling?  1
Hi friends, i am new to java. can you explain how java is secured.  1
basic difference b/w ALL types of JDBC driver. Systematix1
why java is not supporting multiple inheritence?  3
why abstract class will have a constructor?  3
Which class has no duplicate elements?  8
What is Exception handling in Java How do you handle run time errors please explain with an example TCS2
what is the difference b/w PUT and POST method to send data to the server Mind-Tree2
What is the difference between the >> and >>> operators?  1
How to add panel to a Frame?  2
What is the difference between Checked and Unchecked exception? Give some examples Ness-Technologies2
What is the difference between getCodeBase and getDocumentBase methods?  1
When finalize method is called?  3
String is a immutable objects . it means that string does not change........... But it will be chang......... { String s="kapil"; String s1="raj"; String s=s1; then print(.......) The String has been changed .. how it is possible and why its called immutable objects  3
What is the difference between throw and throws? What is the similarity between try and throw?  2
What is Distributed Application and what is its usage?  1
Write a program to create a binary Tree ?  1
What are field variable and local variable?  2
What is the middleware?  2
what is meaning of JIT?  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