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 the difference between synchronized and synchronized block?
Explain how can you debug the Java code?
Why is the singleton pattern considered to be an anti pattern?
What is use of super keyword in java?
Define an applet in java?
How do you know if a value is nan?
Which is better ascii or unicode?
What is lastindexof in java?
What do you understand by abstract classes?
What exactly is java?
Given a singly linked list, find the middle of the list in a single traversal without using temporary variable.
What two classes are used to read data only?
Can a boolean be null java?
What is module with example?
How do you differentiate abstract class from interface?