What should you do?

You need to prevent the exception that is being thrown by the findCamera( ) method.
What should you do?
A. Check the devices collection for multiple devices.
B. Place a try block immediately after line VD12 and a catch block immediately before line VD17. In the catch block, display the message property of the exception object to the user.
C. In line VD10, set the cameraID variable to null.
D. Check the devices collection for null before setting the cameraID variable.

microsoft-exams

Leave a Reply

Your email address will not be published. Required fields are marked *


The reCAPTCHA verification period has expired. Please reload the page.