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

How do you use nextline in java?

0 Answers  


How can a class be accessed, If no access modifiers are declared?

4 Answers  


Why set is used in java?

0 Answers  


what is thread? What are the high-level thread states? Or what are the states associated in the thread? : Java thread

0 Answers  


What are the drawbacks for singleton class?

0 Answers  






What is null data type?

0 Answers  


1.) if we use "private" in place of "public" in public static void main()... 2.) if we use "int" in place of "void".... 3.) can we ommit "static" keyword from that statement.... 4.) also can we give the command line arguments type as int type or float,etc.(.i.e (string args[]))

1 Answers  


What error occurs if a try-catch-finally statement sequence does not have a catch clause?

4 Answers  


Why java is used everywhere?

0 Answers  


Do you know why doesn't the java library use a randomized version of quicksort?

0 Answers  


Explain, why the constructor is required in implemented class?

4 Answers  


Explain the difference between an Interface and an Abstract class?

0 Answers   BirlaSoft,


Categories