Question: QUESTION 1 5 public class Foo { 6. int x = 20; 7- public static void main(String[] args) { 8 Foo food = new Foo();

 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

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

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!