what is the use of private constructor in core java?
Answer Posted / rajib
Whenever we r using singleton class then we use constructor
as private.
| Is This Answer Correct ? | 38 Yes | 6 No |
Post New Answer View All Answers
what is difference betweem home interface and remote interface?
Why singleton class is used in java?
What is difference between null and void?
What is constant in programming?
What is command line used for?
What is function declaration?
Write down program for following scenario. Use java coding standard. You have array list with some words in it..we will call it as dictionary….and you have a arbitrary string containing some chars in it. You have to go through each word of dictionary and find out if that word can be constructed with the help of chars from arbitrary string given. If you find the word print it else print none.
what do you mean by marker interface in java?
Does sprintf allocate memory?
What is a void method?
Mention the default values of all the elements of an array defined as an instance variable.
What is the instance of an object?
What are different access specifiers in java? Explain
What is an iterator interface in java programming?
What is internal variable?