Compare printing student grade programs - Java Quiz Question


What will be the output of the following program?


A
Both StudentPass1 and StudentPass2 are same
B
Both StudentPass1 and StudentPass2 are same and StudentPass2 is faster than StudentPass1
C
StudentPass1 does not work when marks is initialized to 35
D
StudentPass1 and StudentPass2 are different