PrepAway - Latest Free Exam Questions & Answers

What will be the outcome?

Given that document is an instance of an IDfDocument object, and given the following statement:
document.setObjectName(“test”); What will be the outcome?

PrepAway - Latest Free Exam Questions & Answers

A.
The code does NOT compile.

B.
At runtime, a NoSuchMethodException is thrown becausesetObjectName() is defined on
IDfSysObject.

C.
At runtime, a NoSuchMethodException is thrown becausesetObjectName() is defined on
IDfPersistentObject.

D.
The code runs successfully.


Leave a Reply