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
Name some useful annotations introduced in Struts2?
How do you find the struts version being used in a project?
What is the use of struts config xml file?
What are the two types of validations supported by validator framework?
Which design pattern is implemented by Struts2 interceptors?
How we can configured action mapping in struts?
How struts2 supports internationalization?
How the flow of various requests happens in struts application?
What do you mean by actionmapping?
What types of validations are available in xml based validation in struts2?
How many struts config file can be created in struts?
What is the difference between empty default namespace and root namespace?
How do I install struts?
What is the purpose of @results?
Does Struts2 action and interceptors are thread safe?