ALLInterview.com :: Home Page Forum9.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   interview questions urls   External Links  Contact Us     Login  |  Sign Up                      
Do you have a collection of Interview Questions and interested to share with us!!
Please send that collection to along with your userid / name. ThanQ
Google
 
Categories >> Software >> Java-Related >> Java-J2EE >> Core-Java
 
 


 

 
 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
Question
what is the use of private constructor in core java?
 Question Submitted By :: Rams
I also faced this Question!!     Rank Answer Posted By  
 
  Re: what is the use of private constructor in core java?
Answer
# 1
Whenever we r using singleton class then we use constructor 
as private.
 
0
Rajib
 
  Re: what is the use of private constructor in core java?
Answer
# 2
Private constructor can be used if we do not want any other 
class to instantiate the class. This concept is generally 
used in Singleton Design Pattern. The instantiation of such 
classes is done from a static public method.
 
0
Rakesh
 
 
 
 
 
 
Other Core Java Interview Questions
 
  Question Asked @ Answers
 
what is difference between String buffer and String builder?  2
methods in Applet?  1
what is connection pooling with example? AMDOC1
What is the default initialized value of a boolean type variable?  3
write the hierarchy of component class?  1
if two references are having same hash codes,is that means those are refering to same object? CTS4
What is clipping?  2
What are the advantages of the model over the event- inheritance model?  1
How do u provide security in java  1
what is inner class? HCL4
what is stringtolennizer with example? Symphony1
What is persistence ?  2
Functionality of JVM?  3
Why Wait and notify are kept in Object class although they are used only with Thread Class  2
What is the return type of read()?  1
Name the method that is used to set a TextComponent to the read-only state?  1
what is session facade ?  1
What is the need of "creating and throwing an UserdefinedException" when the "Exception" class is already available?  2
I/O blocking means?  1
which methods consisting of the serilizable interface?  3
 
For more Core Java Interview Questions Click Here 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com