what is private constructor?what are the uses of writing
private constructor in our program?

Answer Posted / gopalramana

no other class does not create instance of this class,we go
private constructor

Is This Answer Correct ?    17 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the major drawbacks of external iteration?

799


What happens when a thread cannot acquire a lock on an object in java programming?

773


why not override thread to make a runnable? : Java thread

749


What is an accessor?

1322


Why volatile is used in java?

746


Name few java.lang classes introduced with java 8 ?

745


What are the parts of methodology?

740


Why are global variables used?

707


What is a linkedhashmap java?

764


Can we write any code after throw statement?

811


What is ordered map in java?

755


How is abstraction implemented in java ?

726


How to compare two strings in java program?

836


Explain the use of shift operator in java. Can you give some examples?

719


What is general methodology?

792