How do you use final keywords and final variables in Java?
Answer Posted / nashiinformaticssolutions
Java programmers are unable to alter the value of variables of basic data types when they use final keywords with them.
When final is used with non-primitive variables, the members of the referred object cannot be altered.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What’s the difference between applets and standalone program?
What is difference between identifier and variable?
What java ide should I use?
What is the purpose of static methods and static variables?
Define array. Tell me about 2-D array.
Variable of the boolean type is automatically initialized as?
What are the uses of synchronized keyword?
What is a variable analysis?
What is meant by attribute?
Can we have more than one package statement in the source file?
Why synchronization is important in java?
How are java objects passed to a method and what are native methods?
Which is fastest collection in java?
why are wait(), notify() and notifyall() methods defined in the object class? : Java thread
How to obtain a performance profile of java program