with the help of private constructor you can add a constraint in your class that nobody can create the object of your class outside the class. coz constructor is visible only inside the class.
Subscribe to:
Post Comments (Atom)
What is Map Collection?
A map collection refers to a set of maps that are compiled and organized for a specific purpose, such as research, education, or preservatio...
-
Mapping of classes can be made into a proxy instead of a table. A proxy is returned when actually a load is calle...
-
Sure, here is an example program in Java that swaps two characters in a string: public class StringSwapExample { public static void main...
-
Also, I found that there is a JAX-WS specification for xml based web-services, and JAX-RS specification for creating RESTful webservices. ...
No comments:
Post a Comment