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

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


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More Core Java Interview Questions

What is the difference between the file and randomaccessfile classes?

0 Answers  


public class BatchTest { public static void main(String[] args) { Runtime run = Runtime.getRuntime(); try { Process p = run.exec("cmd start /c D:/test.bat"); System.out.println(p.exitValue()); } catch (Exception e) { e.printStackTrace(); } System.out.println("FINISHED"); } }

0 Answers  


what is Dictionary? and what purpose it is used for?

3 Answers  


I have one POJO class(Java bean class), it has two variables for that it has setters and getters. Now i have created two objects for that class and i have set the data for those variables through this two objects. Now question is i want check whether those two objects have same data or not, for this write a program? Thanks, Bose.

2 Answers   Oracle,


'A class is a template for an object' explain this statement.

0 Answers   Akamai Technologies,






What is the difference between call by reference and call by pointer?

0 Answers  


What is unicode?

5 Answers  


define the terminology association.

0 Answers  


Does java support multi dimensional arrays ?

6 Answers  


Can we declare main () method as non static?

0 Answers  


Can we sort list in java?

0 Answers  


Explain java coding standards for classes or java coding conventions for classes?

0 Answers  


Categories