Categories:
.NET (357)
C (330)
C++ (184)
CSS (84)
DBA (2)
General (7)
HTML (4)
Java (574)
JavaScript (106)
JSP (66)
Oracle (114)
Perl (46)
Perl (1)
PHP (1)
PL/SQL (1)
RSS (51)
Software QA (13)
SQL Server (1)
Windows (1)
XHTML (173)
Other Resources:
Where and how can you use a private constuctor.
Where and how can you use a private constuctor.
✍: Guest
Private constructor can be used if you do not want any other class to instanstiate it by using new. The instantiation is done from a static public method, which is used when dealing with the factory method pattern.
2012-08-17, 2477👍, 0💬
Popular Posts:
If we have two version of same assembly in GAC how do we make a choice ? OK first let’s try to under...
Which one of the following statements is TRUE in regard to overloading the ++ operator? 1 You cannot...
What will be printed as the result of the operation below: #define swap(a,b) a=a+b;b=a-b;a=a-b; void...
What's the difference between J2SDK 1.5 and J2SDK 5.0? There is no difference, Sun Microsystems just...
Can each Java object keep track of all the threads that want to exclusively access to it?