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
How do you create a sop?
Difference between concurrent hashmap and hashtable and collections
Explain different ways of creating a thread. Which one would you prefer and why?
What is the purpose of format function?
Which are different kinds of source code?
Are private methods final?
What is the benefit of using enum to declare a constant?
How is string stored in java?
What will be the output of round(3.7) and ceil(3.7)?
What are different ways of object creation in java ?
What is stored procedure. How do you create stored procedure ?
Explain super keyword in java.
Is java written in c?
what is the role of xml in core java?? and how we can use it?? can somebody give a sample program with explanation and from where i can read more about xml?????
Is array size fixed in java?