MCQOPTIONS
Saved Bookmarks
| 1. |
What one of the following is best practice to handle Null Pointer exception?i) int noOfStudents = line.listStudents().count;ii) int noOfStudents = getCountOfStudents(line); |
| A. | Option (i) |
| B. | Option (ii) |
| C. | Compilation Error |
| D. | Option (ii) gives incorrect result |
| Answer» C. Compilation Error | |