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 |
when there is a need of jvm then how we can say that java is a platform independent language?
How to create packages in java?
What is the use of a conditional inclusion statement in Java ?
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
What is deserialization?
Is it safe to install java on my computer?
How will you calculate the depth of a binary tree if the tree contains 15 nodes?
What is the use of object and class classes?
How do you change an int to a string?
What is emant by API? is it related to java only or it is common for all OOPS supporting language?
What is a java predicate?
What does 0 mean in boolean?