what is the use of declaring constructor as private?
Answer Posted / ranganathkini
By declaring the class constructor as private, other classes
cannot create instances of the class.
This design is usually used in singleton patterns.
| Is This Answer Correct ? | 22 Yes | 2 No |
Post New Answer View All Answers
Define how does a try statement determine which catch clause should be used to handle an exception?
What is difference between class and object in java?
What’s the difference between unit, integration and functional testing?
What is arraylist e?
What is difference between core java and java ee?
Why generics are used in java?
What are advantages of exception handling in java?
How does a for loop work java?
How do you create a first line indent?
What does += mean coding?
What is e in java?
Define immutable object?
What is array command?
What is io stream in java?
We are seeing so many videos/audios as many web sited. But question is these videos or audios are stored in Databases ( Oracle, Mysql, Sybase,... ) or stored any file directory from there they will give the link for that? Pls explain and give sample code to achieve this one? Thanks, Seenu.