Question: In the below code, there are 9 syntax errors. Identify and suggest fixes for them. Only list 9! public class Question8 { Public static void

 In the below code, there are 9 syntax errors. Identify and

In the below code, there are 9 syntax errors. Identify and suggest fixes for them. Only list 9! public class Question8 { Public static void main (String[] args) { int sum = sum(7.3, 8):printMsg("hello"): Scanner keyb = new Scanner (System. in): System.out.print("Enter a number:): int value = keyb.next(): printMessage (sum(sum, value)): } Public static double sum(int a, int b){ return a + b:} public static String printMessage(String msg)( File f = File("log.log"): PrintWriter p = new PrintWriter(f): p.println("MSG:"+msg):p.close(): } {//This is supposed to be aligned to the left

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!