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
What is the advantage of functional interface in java 8?
What is mean by exception?
Explain inner classes ?
What is the static method?
what is singleton class in java?
Can you explain the cs option of java interpreter?
What is the replace tool?
What’s the difference between unit, integration and functional testing?
What is an example of a conditional statement?
What is stored procedure. How do you create stored procedure ?
What is singleton pattern?
how does multithreading take place on a computer with a single cpu? : Java thread
When is the finalize() called?
Can we rethrow the same exception from catch handler?
What is a qms manual?