what is private constructor?what are the uses of writing
private constructor in our program?
Answer Posted / udaychow
only once instance of a particular class is allowed.through
private constructor only we can achieve singleton design
pattern.
Is This Answer Correct ? | 8 Yes | 8 No |
Post New Answer View All Answers
Why generics are used in java?
What are abstract methods in java?
Can we serialize static variables in java?
Give us the name of the list layoutmanagers in java?
What is regex in java?
Difference between predicate, supplier and consumer ?
Explain about sets?
Can list be null in java?
What are adapter classes?
Describe the process as to how substring() methodology mechanisms in java.
What are the common uses of "this" keyword in java ?
What is multithreading in java?
Explain features of interfaces in java?
What is remote method invocation (rmi)?
what type of questions asked for barclays technologies pune please send urgent