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 register variables what are the advantages?

452


Is set thread safe java?

505


describe synchronization in respect to multithreading? : Java thread

512


What is the collection interface?

591


Can you explain the meaning of aggregation and composition

574






What do you mean by a JVM?

572


how we can use debug in myeclipse 6.0 in order solve the problems that exist in our program when there are 900 to 1000 pages in a web application

1671


What is bifunction in java?

682


What’s meant by anonymous class?

606


List out five keywords related to exception handling ?

605


Define locale.

593


Can we overload the main() method?

556


What is the difference between yielding and sleeping in java programming?

591


What is hash code collision?

597


If I only change the return type, does the method become overloaded?

541