Question: The following program has 9 mistakes. What are they? public class Oops3 { public static void main () { double bubble = 867.5309; %3D double

The following program has 9 mistakes. What are they?

public class Oops3 { public static void main () { double bubble = 867.5309; %3D double x = 10.01; printer (double x, double y); 6. printer (x); printer (

public class Oops3 { public static void main () { double bubble = 867.5309; %3D double x = 10.01; printer (double x, double y); 6. printer (x); printer ("barack", "obama"); 8. System.out.println ("z = " + z); 9. } 10 11 public static void printer (x, y double) { 12 int z 5; 13 System.out.println ("x = " + double x + " and y = " + y); 14 System.out.println ("The value from main is: " + bubble); 15 } 16

Step by Step Solution

3.49 Rating (175 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Mistakes in Oops3 program 1 line 5 cannot use variable y without d... View full answer

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 Building Java Programs A Back to Basics Approach Questions!