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


Please Help Members By Posting Answers For Below Questions

What is a Null object?

1200


What is the access scope of a protected method?

745


What is the independent variable in an experiment?

744


How can a gui component handle its own events in java programming?

756


What is difference between static class and singleton pattern?

681


What will happen to the exception object after exception handling?

793


How do you compare two strings lexicographically?

727


What is a substitution variable?

795


how to write a program for sending mails between client and server

1808


What is variable argument in java?

768


What is meant by oops concept in java?

736


Can we create object of inner class in java?

691


Why doesn't the java library use a randomized version of quicksort?

745


What is sizeof in java?

862


What does 3 dots mean in java?

741