If you do not want your class to be inherited by any other class. What would you do?


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

Post New Answer

More Core Java Interview Questions

How do you find the independent variable?

0 Answers  


suppose in a class there is a code like this: { Set hs=new Hashset(); hs.add(new Emp("kathy",1000)); hs.add(new Emp("kathy",2000)); } how can u avoid the above code in your class as set won't allow duplicate objects?

3 Answers  


What is a boolean output?

0 Answers  


What is jpa specification?

0 Answers  


Does string is thread-safe in java?

0 Answers  






if a java file without any source code is valid java file?

3 Answers   SparkTG,


Is it possible to write method inside method

4 Answers   L&T,


Difference between collection, collection and collections in java?

0 Answers  


Tell me about different OOPS concepts.

0 Answers   Amdocs,


Differentiate between stringbuffer and string?

0 Answers  


What is constructor chaining in java?

0 Answers  


What do you mean by stack?

0 Answers   Accenture,


Categories