What is final keyword in java? Give an example.



What is final keyword in java? Give an example...

Answer / Rajesh Kumar Singh

The 'final' keyword in Java means that a variable or a method cannot be overridden or modified. Example: final int constant = 10; This constant value 10 can't be changed.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Core Java Interview Questions

when there is a need of jvm then how we can say that java is a platform independent language?

3 Answers  


How to create packages in java?

1 Answers  


What is the use of a conditional inclusion statement in Java ?

1 Answers   Global Logic,


we r taking <load-on-startup>0</load-on-startup> <load-on-startup>1</load-on-startup> in deployment descripter for loading servlets like serv1 N serv2? so 'll it take serv1 or serv2

2 Answers   CSC,


What is deserialization?

1 Answers  


Is it safe to install java on my computer?

1 Answers  


How will you calculate the depth of a binary tree if the tree contains 15 nodes?

1 Answers   Aricent,


What is the use of object and class classes?

1 Answers  


How do you change an int to a string?

1 Answers  


What is emant by API? is it related to java only or it is common for all OOPS supporting language?

3 Answers  


What is a java predicate?

1 Answers  


What does 0 mean in boolean?

1 Answers  


Categories