what is the use of declaring constructor as private?
Answer Posted / ranganathkini
By making all the constructors of a class private, you can
also prevent other class from extending the class without
marking the class final.
| Is This Answer Correct ? | 9 Yes | 6 No |
Post New Answer View All Answers
Explain about transient variables in java?
What is the meaning of nullable?
What is hashmap and map?
What is <> used for in java?
Why java is call by value?
What is final keyword?
What does three dots mean in java?
What data type is true or false?
What is the size of an array?
Write a java program that prints all the values given at command-line.
What happens if we don’t define serial version uid?
What is the vector class in java programming?
Explain about the performance aspects of core java?
What does the string method compareto () do?
Can variables be used in java without initialization?