Question: QUESTION 1 5 public class Foo { 6. int x = 20; 7- public static void main(String[] args) { 8 Foo food = new Foo();
![20; 7- public static void main(String[] args) { 8 Foo food =](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2024/09/66f2e3158bddc_87766f2e31517095.jpg)

QUESTION 1 5 public class Foo { 6. int x = 20; 7- public static void main(String[] args) { 8 Foo food = new Foo(); 9 System.out.println(food.x); 10 11 } 12 13 } He because Fooxstinal QUESTION 2 4. What will be the output of the below program? public class Test { public static void main(String[] args) { char c = 65; System.out.println("c = " + c); } } Comple Time Error Prints Runtime Error Prints55 QUESTION 3 5. What will be output of below program? public class Test { public void main(String[] args) { int x = 10*20-20; System.out.println(x); } } Runtime Error Prints 180 Prints Completare error
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
