what is the use of private constructor in core java?
Answer Posted / rajib
Whenever we r using singleton class then we use constructor
as private.
| Is This Answer Correct ? | 38 Yes | 6 No |
Post New Answer View All Answers
How do you do absolute value in java?
What is static data type in java?
What are the differences between include directive and include action?
What is scanner in java?
Write an algorithm for quick sort?
What is a variable in java?
What advantage do java's layout managers provide over traditional windowing systems?
What is considered an anti pattern?
What is a method signature java?
What is object data type?
Difference between this() and super() ?
What is instance example?
Difference between ‘is-a’ and ‘has-a’ relationship in java?
Is java a utf 8 string?
What is an exception? difference between Checked and Unchecked exception in Java