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
What is a constructor overloading in java?
What are the five major types of reference sources?
What’s the difference between applets and standalone program?
Explain the concept of proper inheritance?
What is the difference between throw and throws keywords?
Can we have a try block without catch block?
what are three ways in which a thread can enter the waiting state? Or what are different ways in which a thread can enter the waiting state? : Java thread
What does java edition mean?
What is matcher in java?
How to perform quicksort in java?
Who is founder of java?
What are parsers? Dom vs sax parser.
How many bits are in a sentence?
What are advantages and disadvantages of OOPs?
What is difference between float and double?