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

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!