Câu 71: GSSP-Java: GIAC Secure Software Programmer-Java
You work as a Software Developer for TechnoZen Inc. You create an application using Java. You define a method, named myMethod. You also define a class, named myClass, within myMethod. Which of the following rules governs the access to the variables of the enclosing method?
Nội dung câu hỏi
You work as a Software Developer for TechnoZen Inc. You create an application using Java. You define a method, named myMethod. You also define a class, named myClass, within myMethod. Which of the following rules governs the access to the variables of the enclosing method?
Các lựa chọn
Đáp án được giữ gọn theo nhãn A, B, C, D trong phần bình chọn tương tác.
- A. myClass can access only final variables. — đáp án hiện tại
- B. myClass can access only static variables.
- C. myClass can access only transient variables.
- D. myClass can access any variable.
Cộng đồng
0 bình luận công khai. Tên thành viên được ẩn một phần.
Chưa có bình luận. Mở giao diện tương tác để bắt đầu thảo luận.