What is the output of the following Java program?
class Main {
public static void main(String args[]){
final int i;
i = 10;
System.out.println(i);
}
}
10. What is the output of the following Java program?
class Main {
public static void main(String args[]){
final int i;
i = 10;
System.out.println(i);
}
}
Output
10
Since i is the blank final variable. It can be initialized only once. We have initialized it to Therefore, 10 will be printed.
| Is This Answer Correct ? | 0 Yes | 0 No |
How do you use compareto in java?
What is space character in java?
What is parsing in java?
is set interface synchronized by default???
How multi processing is achieved in JAVA?
When finalize method is called?
there are N number of matchboxes numbered 1...N.each matchbox contain various number of stick.Two player can alternatevely pick some amount of stick from the higest stick containing box . The player is condidered win if there is no stick after his move.Find the final move so that the move player win. Note:In case the number of stick is equal ,pick the stick from the higest numbered box.
What are the different tags provided in jstl?
When we r go to abstract class and when we go to Interface? i have confusion this question while in interview plz clarify
What happens to the Exception object after handling an exception?
What does int argc char * argv [] mean?
Differentiate between nested and inner class in java.
0 Answers Akamai Technologies,