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
How to reverse a string in java?
Can an interface extend another interface?
How to find the largest value from the given array.
How do you remove all elements from an arraylist in java?
What does += mean coding?
Tell me the Importent classes in net package?
What is complexity in java?
What should I import for arraylist in java?
What is stack example?
What is a char in java?
Does java have extension methods?
What is singleton math?
What are scalar data types?
Can a static method be final?
Why java is said to be pass-by-value ?