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 is an argument in java?
Can we call a non-static method from inside a static method?
Why vector class is used?
What is java and their uses?
Difference between Linked list and Queue?
How do you define a variable?
Give any two differences between C++ and java.
How do I compare two strings in word in java?
How do you declare an empty string?
How are destructors defined in java?
Find the value of a specified element of the array arr[i] where 0 <= i <= n-1
Is java an open source?
How do you use spaces in java?
What is the final access modifier in java?
FOR EXAMPLE WE R HAVING TWO LIST ELEMENTS ..BOTH LISTS CONTAINS ID,NAME,PLACE ..I NEED TO COMPARE BOTH IDS IN TWO LISTS,IF ID'S R SAME MEANS WE HAVE ADD THE DETAILS(LIKE NAME,PLACE) TO MAP...HOW IS POSSIBLE ?CAN ANY ONE SUGGEST?