I want my class to be developed in such a way that no other class (even derived class) can create its objects. How can I do so?


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More Core Java Interview Questions

How many bytes is a character?

1 Answers  


What is the primary benefit of encapsulation?

0 Answers  


what is the use/perpose of having a method antive?

2 Answers  


Is heap stored in ram?

0 Answers  


What are the two main uses of volatile in Java?

0 Answers  






Explain implementation and how is it different from conversion?

0 Answers   Aricent,


Differentiate between class and structure.

0 Answers   Amdocs, Motorola,


What is the main method java?

0 Answers  


hr interview how many minutes asking question

0 Answers  


Differentiate between run time error and syntax error.

0 Answers   Amdocs,


Explain what pure virtual function is?

0 Answers   Aricent,


How do you format in java?

0 Answers  


Categories