Question: 2 . List the five compilation errors in the following code: ( 1 0 ) 1 void int myFunction ( ) { 2 long choice
List the five compilation errors in the following code:
void int myFunction
long choice ;
switch choice
case :
System.out.printlnadd;
continue;
case :
System.out.printlndelete;
break;
case :
System.out.printupdate;
break;
default ;
System.out.printlnclean;
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
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
