U.S. Independence Day Deal! Unlock 25% OFF Today – Limited-Time Offer - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Huawei H14-231_V1.0 Exam - Topic 1 Question 55 Discussion

When the developer jumps to a new page through the button button, the following code is created. If you don't add "" Button button = (Button) findComponentByld(ResourceTable.ld_button) ;" What happens to this line of code?Public void onStart(Intent intent){super.onStart(intent);super.setUlContent(ResourceTable.Layout_ability_main);Button button =(Button)findComponentByld(ResourceTable.ld_button);button.setClickedListener(listener -> present(newSecondAbilitySlice(),new Intent()));}
B) button button does not show up on the layout
A) When you click the button again, the ability crashes
C) Clicking the button does not respond
D) Click the button button to jump to a new page

Huawei H14-231_V1.0 Exam - Topic 1 Question 55 Discussion

Actual exam question for Huawei's H14-231_V1.0 exam
Question #: 55
Topic #: 1
[All H14-231_V1.0 Questions]

When the developer jumps to a new page through the button button, the following code is created. If you don't add "" Button button = (Button) findComponentByld(ResourceTable.ld_button) ;" What happens to this line of code?

Public void onStart(Intent intent){

super.onStart(intent);

super.setUlContent

(ResourceTable.Layout_ability_main);

Button button =

(Button)findComponentByld(ResourceTable.ld_button);

button.setClickedListener(listener -> present(new

SecondAbilitySlice(),new Intent()));

}

Show Suggested Answer Hide Answer
Suggested Answer: B

Contribute your Thoughts:

0/2000 characters

Currently there are no comments in this discussion, be the first to comment!


Save Cancel