Question: The code below will not compile for three reasons. List two of the three reasons that the code will not compile. Be as specific as
The code below will not compile for three reasons. List two of the three reasons that the code will not compile. Be as specific as possible.
public class DoesNotCompile { public static void main ( String args[] ) { int x;
int y = 6 + x;
int a = addParam ( x,y ); System.out.printf ("a is %.2f ", a); } public float addParam ( int a, int b ) { return a + b; } }
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
