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 ("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
Mistakes in Oops3 program 1 line 5 cannot use variable y without d... View full answer
Get step-by-step solutions from verified subject matter experts
