what is the use of declaring constructor as private?
Answer Posted / suganya
prevent to access by other class even sub class cant have
permission to create object of that base class.
Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
is it possible to instantiate the math class?
What are void methods?
how its run?
Explain how hashmap works?
Can we use a default constructor of a class even if an explicit constructor is defined?
What is udp in java?
What is super?
Can substring create new object?
How can we make string upper case or lower case?
What is meant by class?
What is the memory leak in java?
What is an interface in java? Explain
How to create an interface?
Can we have more than one package statement in source file ?
What are the different types of collections in java?