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
What is the public field modifier?
Can we have 2 main methods in java class?
What is a parameter in java?
What is a singleton puppy?
Write a program to reverse array in place?
What is connection class in java?
How many bytes is a string in java?
What is an iterator interface in java programming?
What is super constructor?
Can long be null in java?
Why is String immutable?
How to pass arraylist to stored procedure in java?
How to make a read-only class in java?
What is bufferedwriter?
What is Major and importance difference between for and foreach loop ?