Consider that str is a variable of class java.lang.String.
Which of the following lines of code may throw a NullPointerException in certain situations?
Select 3 options
Correct Options are : A B C
|| and && are short circuiting operation.
If the value of the expression can be known by just seeing the first part then the remaining part is not evaluated
while | and & will always let all the parts evaluates.