PrepAway - Latest Free Exam Questions & Answers

Which code segment should you insert at line 03?

You are developing an application that uses several objects. The application includes the following
code segment. (Line numbers are included for reference only.)

You need to evaluate whether an object is null.
Which code segment should you insert at line 03?

PrepAway - Latest Free Exam Questions & Answers

A.
Option A

B.
Option B

C.
Option C

D.
Option D

Explanation:
Use the == operator to compare values and in this case also use the null literal.

3 Comments on “Which code segment should you insert at line 03?


Leave a Reply