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  >>  Java J2EE  >>  Java Related  >>  SunOne
 
 


 

 
 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 does a constructor does.
 Question Submitted By :: Guest
I also faced this Question!!     Rank Answer Posted By  
 
  Re: what does a constructor does.
Answer
# 1
Constructor is a member function of class that is used to
create objects of that class.

we can also intialise instance variables.
 
Is This Answer Correct ?    4 Yes 0 No
Sucharitha
 
  Re: what does a constructor does.
Answer
# 2
Constructor is a special type of function which is 
available for every class.

Constructors can be used to create a object in different 
forms.

Constructors can be used to execute a statements when 
object is creating.

Constructors can be used to intialized the object 
properties.
 
Is This Answer Correct ?    2 Yes 0 No
Imtiyaz
 
 
 
  Re: what does a constructor does.
Answer
# 3
constructor  is a function, which would be executed only at 
the time of creating an object.
constructor would be executed only once on the object.
 
Is This Answer Correct ?    2 Yes 1 No
Manmohan
 
  Re: what does a constructor does.
Answer
# 4
constructor is a member function with same name of the class
if we call constructor it will automatically invoke the object
of that class.when we calling the normal member function we
usually creating object of that class then calling it using
the .operator
 
Is This Answer Correct ?    4 Yes 0 No
Sandeep
 

 
 
 
Other SunOne Interview Questions
 
  Question Asked @ Answers
 
How to handle exceptions without using try,catch,throw, and log4j Marlabs2
what does a constructor does. Marlabs4
what is swing and jsp. where we use swings and jsp IBM4
 
For more SunOne 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