what happen if the private constructor is written in a claass

Answer Posted / ravi kumar

If we write the private constructor, it is not possible to
create the object for the class. If we want to create the
object for the class, we need to write the default
constructor, which is a public one.

Is This Answer Correct ?    0 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how to get the last 10 elements using logic:iterate in struts with hiernate from database.

4044


What are the sections into which a strut configuration file can be divided?

560


Is there a particularly good ide to use with struts?

510


What are Struts2 core components?

571


How to upload struts file?

608






What is action class?

584


Can we integrate struts with spring?

598


how to debug struts project in netbean ?

1925


What is the purpose of '@keyproperty'?

581


Is struts mvc framework?

486


How to handle exceptions in structs?

580


What is the difference between plain-validator and field-validator?

526


What is the purpose of @customvalidator annotation?

577


Are interceptors and filters different?

552


What is the difference between struts and spring?

527