Given the code fragment: Which two modifications should you make so that the code
compiles successfully?
A.
Option B
B.
Option C
C.
Option D
D.
Option E
E.
Option A
Given the code fragment: Which two modifications should you make so that the code
compiles successfully?
A.
Option B
B.
Option C
C.
Option D
D.
Option E
E.
Option A
A,B
and
B,C
both will work.
wrong!!!
A C
BE(Option A and Option C will make only compilation successful, during run time exception will raise)
A y B por la puta
I ran this code and the answers I got are A(Option B), and B(Option C). TestKing says the answer is only A(Option B), which is weird because the question asks “Which two…”.
OPtion A and Option C, note that Option B does not work cause Exception is a superclass of IOException and there is an unreachable code.
Answers: B (option C) and E (option A)
Tested
b,e
A(option B),B(option C)
Since the question is “Which two modifications should you make so that the code
compiles successfully?” and hence Option A and C will let the program be error free at compile time.
correct answer A and C,
B is unreachable.