ExamGecko
Question list
Search
Search

Related questions











Question 167 - H14-231_V1.0 discussion

Report
Export

A developer needs to cancel a task, but part of the code segment he wrote was deleted by mistake. The remaining codes are as follows, with the missing codes indicated by the dash:

TaskDispatcher dispatcher =

getUlTaskDispatcher();

Revocable revocable =

________________________(new Runnable(){

@Overide Public void run(){

HiLog.info(L . ABEL_ _LOG,'delay dispatch');

}

},10);

Boolean revoked = revocable.revoke();

HiL og.info(L _ABEL_ LOG),'%{public}b' ,revoked);

Which of the following might be missing pieces in the above code?

A.
dispatcher.delayDispatch
Answers
A.
dispatcher.delayDispatch
B.
dispatcher.asyncDispatch
Answers
B.
dispatcher.asyncDispatch
C.
dispatcher.syncDispatch
Answers
C.
dispatcher.syncDispatch
D.
dispatcher.createDispatchGroup
Answers
D.
dispatcher.createDispatchGroup
Suggested answer: A
asked 18/09/2024
Kristian Michael Matias
44 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first