How do you use final keywords and final variables in Java?
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / 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 |
String is mutable or immutable?
How is abstraction implemented in java ?
What is the difference between synchronized and synchronized block?
What are design patterns and please explain?
Can we use switch statement with strings?
Does java return by reference?
Give few examples of final classes defined in Java API?
Can a class be private in java?
IN java collections we have both interfaces and classes. instead of using interfaces why we can't use classes only like that why we can't use interfaces only. why we need two things interface and class.
how to know the total memory occupied by the objects in the ArrayList(Array list may contain duplicate objects)
What does indexof mean?
Difference between doublesummarystatistics, intsummarystatistics and longsummarystatistics ?