Question: Which of the labeled lines in the following code can be independently uncommented by removing the // characters, such that the code will still compile?

Which of the labeled lines in the following code can be independently uncommented by removing the // characters, such that the code will still compile?

class GeomInit ( //int width= 14; { // area = width *

Select the two correct answers.

(a) Line A

(b) Line B

(c) Line C

(d) Line D

(e) Line E

class GeomInit ( //int width= 14; { // area = width * height; int width= 37; { // height = 11; } int height, area; //area= width * height; { // } int width = 15; area = 100; / Line A */ /* Line B */ /* Line C */ /* Line D */ /* Line E */

Step by Step Solution

3.37 Rating (156 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

c and e Line A will cause an illegal redefinition o... 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 Java Programming 8th Questions!