Question: 2 . List the five compilation errors in the following code: ( 1 0 ) 1 void int myFunction ( ) { 2 long choice

2. List the five compilation errors in the following code: (10)
1 void int myFunction(){
2 long choice =2;
3 switch (choice){
4 case 1:
5 System.out.println(add);
6 continue;
7 case 2:
8 System.out.println(delete);
9 break;
10 case 3:
11 System.out.print(update);
12 break;
13 default ;
14 System.out.println(clean);
15}
16}
Write only the line number and either fix or state the 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 Finance Questions!