Question: What is wrong with the following programs? 1 public class ShowErrors { 2 public static void main(String[] args) { 3 int i; 4 int j
What is wrong with the following programs? 1 public class ShowErrors { 2 public static void main(String[] args) { 3 int i; 4 int j = 5; 5 6 if (j > 3) 7 System.out.println(i + 4); 8 } 9 } (a) (b) 1 public class ShowErrors { 2 public static void main(String[] args) { 3 for (int i = 0; i < 10; i++); 4 System.out.println(i + 4); 5 } 6 }\r\n
Step by Step Solution
3.46 Rating (153 Votes )
There are 3 Steps involved in it
public class ShowErrors public static void mainString args We have to ... View full answer
Get step-by-step solutions from verified subject matter experts
