what happen if the private constructor is written in a claass

Answer Posted / venkateshk

If private constructor is written in a class is preventing
to create objects for the class from outside of class.

Is This Answer Correct ?    16 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the two scope types for formbeans?

604


Explain about tiles?

571


What is the purpose of @key?

575


Is struts action class singleton?

544


What is struts 2 framework in java?

537






Why actionservlet is singleton in struts?

588


What does params interceptor?

529


What helpers in the form of jsp pages are provided in struts framework?

525


What do you mean by ognl?

552


Where should struts xml be placed?

501


At the point, you should go for struts framework?

544


How nested beans can be used in Struts applications?

548


What are the features of struts 2?

539


What is request processor and how does it relates to action mapping?

575


What is the purpose of @action annotation?

565