I want my class to be developed in such a way that no other class (even derived class) can create its objects. Define 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

What isan abstract class and when do you use it?

1 Answers   Genpact,


What is java beans?

0 Answers  


When do we use synchronized blocks and advantages of using synchronized blocks?

0 Answers  


What is a nested list?

0 Answers  


What are the states of thread in java?

0 Answers  


Explain how to convert any java object into byte array.

0 Answers  


what is use of marker interface? give me good example?

2 Answers  


What is meant by method overriding?

0 Answers  


How an object is serialized in java?

0 Answers  


How is object created in java?

5 Answers   Cap Gemini,


can we write two same methods in outer class and innerclass.

1 Answers   3i Infotech,


what is difference between abstraction and interface?

8 Answers   FIC,


Categories