Question: What is displayed on the screen after running the code below. public class A 2 { public static void main ( String [ ] args
What is displayed on the screen after running the code below.
public class A
public static void mainString args
Fruit fruits new Fruit;
fruits new Fruit;
fruits new Apple;
fruits new Orange;
fruits new GoldenDelicious;
fruits new McIntosh;
forFruit f: fruits
fsaySomething;
Fruit apples new Apple;
apples new Apple;
apples new GoldenDelicious;
apples new McIntosh;
forFruit f: apples
add code here
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
