Question: Given the following code, which lines when placed independently in the blank allow the code to compile and print bounce? (Choose two.) A. var new
Given the following code, which lines when placed independently in the blank allow the code to compile and print bounce? (Choose two.)

A. var new = TennisBall;
B. TennisBall();
C. var var = new TennisBall();
D. new TennisBall;
E. new TennisBall();
public class TennisBall { public TennisBall() { System.out.println("bounce"); } } public static void main (String [] slam) { }
Step by Step Solution
3.51 Rating (144 Votes )
There are 3 Steps involved in it
To determine which lines when placed independently in the blank would allow the code to compile and ... View full answer
Get step-by-step solutions from verified subject matter experts
