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 a Null object?
What is the access scope of a protected method?
What is the independent variable in an experiment?
How can a gui component handle its own events in java programming?
What is difference between static class and singleton pattern?
What will happen to the exception object after exception handling?
How do you compare two strings lexicographically?
What is a substitution variable?
how to write a program for sending mails between client and server
What is variable argument in java?
What is meant by oops concept in java?
Can we create object of inner class in java?
Why doesn't the java library use a randomized version of quicksort?
What is sizeof in java?
What does 3 dots mean in java?