How can we create objects if we make the constructor private ?
No Answer is Posted For this Question
Be the First to Post Answer
What are parent methods and how can you call them?
Explain different types of thread priorities ?
Can constructor be protected in java?
Is array serializable java?
Name the components that are termed to be Heavy-weight component but available in Light-weight components?
7) Suppose there is Student class like class student { int age; string name; } We want to store these objects in a HashMap. Do we need to override any methods in Student class? If any which ones and why? what if i just override equals or just hashcode? what will be the results in both the cases?
What is the use of ?this??
how to call one program .class file in another program
Why ArrayList class is not a synchronized class and why it is not a thread safe class? explain
Is there any difference between synchronized methods and synchronized statements?
What is a parameter in a function?
What is the difference between a local variable and an instance variable?