Home / Programming MCQs / JAVA MCQs / Question
R
Q. What will be the output of following Java code?
public class Main { public static void main(String arg[]) { int i; for (i = 1; i <= 12; i += 2) { if (i == 8) { System.out.println(i); break; } } } }
The condition (i == 8) could not be satisfied hence nothing cannot be printed.
You must be Logged in to update hint/solution
File extension of a view state’s name which is by default loaded by facelet page.
What will the output of the following program?
Which of the following creates a List with 5 visible items and multiple selections enabled?
Which of these can not be used for a variable name in Java?
When reference variable of Parent class refers to the object of Child class, then it is known as
Find the output of below Java program:
Discusssion
Login to discuss.