what is private constructor?what are the uses of writing
private constructor in our program?
Answer Posted / amit
Private constructor can be used to make a pure static
class, using it we can create only one instance of class at
the loading time.
| Is This Answer Correct ? | 1 Yes | 4 No |
Post New Answer View All Answers
Explain about varargs in java?
What is functional interface in javatpoint?
how to prepare for IT Officers Interview in Banks
Can you explain the cs option of java interpreter?
What does yield method of the thread class do?
What is the use of static class?
explain multi-threading in java?
How do you get the length of a string in java?
What is matcher in java?
Can we use both this () and super () in a constructor?
What are different type of exceptions in java?
What are the types of sockets in java?
what do you mean by classloader in java?
what is the messsage u r going to get from an objectoriented programing?
How many types of equations are there?