(Choose 1 answer)
1. final class Aaa
2. {
What is the minimal modification that will make this code compile correctly?
3.int xxx;
4.void yyy() { xxx = 1; }
5.}
67
6.
7.
8. class Bbb extends Aaa
9. {
10.final Aaa finalref = new Aaa();
11.
12.
13.
14.
final void yyy()
{
15.16. }
System.out.println("In method yyy()");
finalref.xxx = 12345;
17.}
A. On line 1, remove the final modifier.
B. On line 10, remove the final modifier.
C. Remove line 15.
D. On lines 1 and 10, remove the final modifier.
E. The code will compile as is. No modification is needed.
7