How to create an instance of a class if the class has
private constructor?
Answer Posted / meera
create an instance of a class within the same class.
then u can create an instance of a class if the class has
private constructor.
| Is This Answer Correct ? | 3 Yes | 2 No |
Post New Answer View All Answers
Define "Access specifiers" in java.
How is string stored in java?
Can a top level class be private or protected?
Give some features of interface?
What is equlas() and hashcode() contract in java? Where does it used?
What are streams?
What is a concrete classes? Is Java object class is concrete class?
What are the types of java languages?
What are keywords in java?
Is .net better than java?
What is thread pool in java with example?
What does exp mean in math?
Can we have a method name same as class name in java?
What is java oops?
What is application system?