what is private constructor?what are the uses of writing
private constructor in our program?
Answer Posted / udaychow
only once instance of a particular class is allowed.through
private constructor only we can achieve singleton design
pattern.
| Is This Answer Correct ? | 8 Yes | 8 No |
Post New Answer View All Answers
Can private method static?
Is java type safe?
What is e in java?
What is meant by method?
What causes memory leaks in java?
What is java virtual machine? Explain
How do you trim a space in java?
What is boolean used for?
What is split return?
Can a static class have a constructor java?
State the significance of public, private, protected class?
What is pass by value?
There are two classes named classa and classb. Both classes are in the same package. Can a private member of classa can be accessed by an object of classb?
what state does a thread enter when it terminates its processing? : Java thread
How to sort list of list in java?