How can we create objects if we make the constructor private ?


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More Core Java Interview Questions

In what type of containers, Border layout is a default layout?

3 Answers  


What do you understand by garbage collection in Java? Can it be forced to run?

0 Answers   TCS,


Which class is the superclass of all classes?

0 Answers  


What restrictions are placed on method overriding in java programming?

0 Answers  


What is Java Annotations?

0 Answers  


Is string passed by reference in java?

0 Answers  


Define interface in java?

0 Answers  


What is the difference between inheritance and encapsulation?

0 Answers  


Is static a keyword in java?

0 Answers  


What is math exp in java?

0 Answers  


Why we use protected in java?

0 Answers  


What if the main() method is declared as private? What happens when the static modifier is removed from the signature of the main() method?

0 Answers  


Categories