Question: java What is wrong in the following code? How can we fix it? 1 2 public class foes { 3 4 public static void main(String[]

java java What is wrong in the following code? How can we fix

What is wrong in the following code? How can we fix it? 1 2 public class foes { 3 4 public static void main(String[] args) { 5 TempClass temp = new TempClass(2); 6 } 7 8 class TempClass 1 9 int i; 10 public void TempClass(int i) { 11 int i = j; 12 } 13 114 |

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!