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 |
WAP to illustrate the use of interface
Can we use a switch statement with strings?
How GUI component handle its own events?
What is difference between static and final?
What is "this" keyword in java? Explain
Explain methods specific to list interface?
What is difference between hashset and hashmap in java?
What is core java called?
Explain the init method?
what is use of session tracking ?with example?
I declared main() method as private. But it still running and displaying the output. Please Answer it . Code Snippet as Below: import java.io.*; class over { private static void main(String[] args) { int high = Integer.MAX_VALUE; int overflow = high + 1; int low = Integer.MIN_VALUE; int underflow = low - 1; System.out.println(high + "\n" +overflow +"\n"+ low +"\n"+underflow); //System.out.println(overflow); //System.out.println(low); //System.out.println(underflow); } }
Why java is not 100% object-oriented?