What is O/Ppublic class Main { static boolean check; public static void main(String...s) { int i; if (check == true) { i = 1; } else { i = 2; } if (i == 2) { i = i 2; }else { i = i 4; } System.out.println(i); } } - Study24x7
Social learning Network
86 followers study24x7 12 Nov 2019 06:55 PM study24x7 study24x7

What is O/P
public class Main { static boolean check; public static void main(String...s) { int i; if (check == true) { i = 1; } else { i = 2; } if (i == 2) { i = i + 2; }else { i = i + 4; } System.out.println(i); } }

study24x7
Write a comment
Related Questions
500+   more Questions to answer
Most Related Articles