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
What is token used for?
What are the loop holes of struts?
What is the difference between empty default namespace and root namespace?
How to combine the struts with velocity template?
What are best practices to follow while developing Struts2 application?
What are inner class and anonymous class?
What are the sections into which a strut configuration file can be divided?
Explain about how requests from the client are sent?
What is the purpose of @intrangefieldvalidator annotation?
State an example of struts configuration file as an action parameter for action servlet.
What is the use of resourcebundle.properties file in Struts Validation framework?
What are action errors and error and what are the consequences they impose?
Provide some important Struts2 constants that you have used?
Explain the difference between jakarta struts and apache struts?
Can you give an overview of how a struts application flows?