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 is the difference between length and size in java?

0 Answers  


class A { public void disp(int a,int b) { System.out.println("hai"); } } class B { public void disp(int a,int b,int c) { System.out.println("hai"); } } above program is overloading or overriding?

9 Answers   Infosys, Wipro,


What are constants and how to create constants in java?

0 Answers  


what is the purpose of the final in the try-catch-final

7 Answers  


What is a dot notation?

0 Answers  






Can java inner class be static?

0 Answers  


Explain throw keyword in java?

0 Answers  


What is meant by collection in java?

0 Answers  


What are the characteristics provided in jdk1.6 apart from other versions?

3 Answers   TCS,


Can java run on google chrome?

0 Answers  


Why stringbuilder is not thread safe?

0 Answers  


What is an enumeration class?

2 Answers  


Categories