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 resultView Answer
E. ; a) Option (i)b) Option (ii)c) Compilation Errord) Option (ii) gives incorrect resultView Answer
Answer» C. Compilation Error


Discussion

No Comment Found