What is the blank final variable?
Answers were Sorted based on User's Feedback
Answer / radhi
a variable with final keyword is called as blank final
variable....
eg. final int i=7;
we cant change the final variable....
there is no use ..if we can make a variabe as final....
| Is This Answer Correct ? | 7 Yes | 4 No |
Answer / pratima
final int i;
You will get compile time error:The blank final field i may not have been initialized
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / sani
when we declare a variable as final is blank final its value
will not change.
| Is This Answer Correct ? | 1 Yes | 4 No |
Is boolean a wrapper class in java?
How to make a read-only class in java?
How do you override a variable in java?
What are blocks?.
Can a list be null in java?
Why map is used in java?
How do you remove all elements from an arraylist in java?
What is a flag and how does it work?
What is a ternary operator in java?
Why are the objects immutable in java?
Can I use % with real numbers?
Can a Byte object be cast to a double value?