PRO192_-_C1_-_RE_-_SU_2023_545.webp
Hoàng Long1

PRO192_-_C1_-_RE_-_SU_2023_545.webp

(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

Thông tin

Category
PRO192
Thêm bởi
Hoàng Long1
Ngày thêm
Lượt xem
2,179
Lượt bình luận
13
Rating
0.00 star(s) 0 đánh giá

Image metadata

Filename
PRO192_-_C1_-_RE_-_SU_2023_545.webp
File size
57.1 KB
Dimensions
1542px x 690px

Share this media

Back
Bên trên Bottom