Computer Science, asked by ahaana16, 4 months ago

What will be the output after the execution of the following Java program?
class MainClass {
public
static void main(String[] args)
{
int x = 10;
int y = 20;
switch (x) {
case 10:
System.out.println("Orange");
break;
case y:
System.out.println("Apple");
break;
}

Answers

Answered by zalakfreya
0

Answer:

sorry I didn't know about it

Similar questions