If result is a String variable that has a value of null what will the following Java fragment do: if (''Y''.equals(result)) { System.out.println(''Yes''); } else { System.out.println(''No''); }
a) Print "Yes"
b) Print "No"
c) Compile-time error
d) Runtime error

Respuesta :

Otras preguntas