whats is the use of final,in which situation final can be
used in the application?

Answers were Sorted based on User's Feedback



whats is the use of final,in which situation final can be used in the application?..

Answer / muralisankar

you can prevent a class from inheritance.
You can prevent a method from overriding.

Is This Answer Correct ?    3 Yes 0 No

whats is the use of final,in which situation final can be used in the application?..

Answer / cool_duzz

Constants.. that are not supposed to be changed ever.

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More Core Java Interview Questions

What is an object in java and how is it created?

0 Answers  


What is the formula to calculate percentage?

0 Answers  


What is the purpose of return statement?

0 Answers  


What is a java list?

0 Answers  


Explain the difference between string, stringbuffer and stringbuilder in java?

0 Answers  






What is finalize() function in java?

0 Answers  


is there a separate stack for each thread in java? : Java thread

0 Answers  


Q) I have a ArrayList object, in that object i have added 5 integer values, 5 float values, 5 string values. Now question is how can delete particular type of data ( i.e all int values or all float values or string values) in that list object at a time?

3 Answers   Aricent,


What is void keyword?

0 Answers  


What do you mean by object?

0 Answers  


String and stringbuffer both represent string objects. Can we compare string and stringbuffer in java?

0 Answers  


What is meant by interface?

0 Answers  


Categories