How do you use final keywords and final variables in Java?
Answer Posted / glibwaresoftsolutions
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
Is singleton class immutable?
What is tochararray in java?
What is object of class in java?
What is the char data type?
How do you declare a string variable?
Difference between Preemptive scheduling vs. Time slicing?
What is the effect of keeping a constructor private?
Difference between start() and run() method of thread class?
What is member in java?
In multi-threading how can we ensure that a resource isn't used by multiple threads simultaneously?
explain different ways of using thread? : Java thread
What is the purpose of skeleton and stub?
What are the classes of java?
Can we convert stringbuffer to string?
What are the two basic ways in which classes that can be run as threads may be defined?