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

Java is pass by value or pass by reference? Explain

0 Answers  


Can we have 2 main methods in java class?

0 Answers  


Is minecraft java edition free?

0 Answers  


What is the function of http?

0 Answers  


What is the purpose of a volatile variable?

0 Answers  


Differentiate between run time error and syntax error.

0 Answers   Amdocs,


what is a transient variable?

5 Answers  


please send me hr interview questions in it industry

0 Answers  


Why generics are used in java?

0 Answers  


What is a stringbuilder?

0 Answers  


Is java util regex pattern thread safe?

0 Answers  


What is a Java switch statement, and how can it be used?

2 Answers  


Categories