Friend - Java Quiz Question


What will be the output of the following program?


A
A friend to all is a friend to none
A friend to all is a friend to none
A friend to all is a friend to none
B
A friend to all is a friend to none
A FRIEND TO ALL IS A FRIEND TO NONE
a friend to all is a friend to none
C
Compilation Error
D
Runtime Error