when we have to use final class in java?

Answers were Sorted based on User's Feedback



when we have to use final class in java?..

Answer / shailendra sharma

Final class can not be inherited.

Is This Answer Correct ?    29 Yes 1 No

when we have to use final class in java?..

Answer / rana

A class is said to be final when i dnt want my class to be
extended by any class so that methods implementation cannot
be changed.
For ex String is a final class

Is This Answer Correct ?    31 Yes 3 No

Post New Answer

More Core Java Interview Questions

What does the “static” keyword mean?

0 Answers  


How does finally block differ from finalize() method?

0 Answers  


What is the base class of all exception classes?

0 Answers  


Explain about narrowing conversion in java?

0 Answers  


Can a class be defined inside an interface?

0 Answers  






How does linkedhashmap work in java?

0 Answers  


Can a class be private in java?

0 Answers  


How many bytes is 255 characters?

0 Answers  


What is the purpose of the finally clause?

3 Answers  


Ducking is automatic in checked exception?True or false

2 Answers  


what is thread? What are the high-level thread states? Or what are the states associated in the thread? : Java thread

0 Answers  


how to use finalize()Method to resources

4 Answers   TCS,


Categories