PrepAway - Latest Free Exam Questions & Answers

What is the purpose of this code fragment?

Consider the following Java code fragment:

What is the purpose of this code fragment?

PrepAway - Latest Free Exam Questions & Answers

A.
The code fragment attempts to extract an object reference named B maintained within a
naming context named A.

B.
The code fragment attempts to extract an object reference A of data type B.

C.
The code fragment attempts to extract an object reference B of data type A.

D.
The code fragment attempts to extract an object reference named A maintained within a
naming context named B.


Leave a Reply