Follow Our FB Page << CircleMedia.in >> for Daily Laughter. We Post Funny, Viral, Comedy Videos, Memes, Vines...


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);
}
}



What is the output of the following Java program? class Main { public static void main(String a..

Answer / hrindows@gmail.com

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

Post New Answer

More Core Java Interview Questions

What is functional interface in java example?

0 Answers  


What are the differences between path and classpath variables?

0 Answers  


What is function and its uses?

0 Answers  


What is __ init __ functions?

0 Answers  


Is 'sizeof' a keyword?

7 Answers  






How many types of string data types are there?

0 Answers  


what is the JNDI?

3 Answers  


What exactly is methodology?

0 Answers  


What is the relationship between a method?s throws clause and the exceptions that can be thrown during the method?s execution?

2 Answers  


What’s the difference between callable and runnable?

0 Answers  


What do you mean by byte code?

0 Answers  


describe method overloading

0 Answers  






Categories