i didnt get the output as follows, instead i receive "\src\Bridge.java:22: cannot find symbol
symbol : method getBidValue(int)
location: class Bridge.Suits
which are true (Choose all that apply.)
A.The output could contain 30
B.The output could contain @bf73fa
C.The output could contain DIAMONDS
D.Compilation fails due to an error on line 6
E.Compilation fails due to an error on line 7
F.Compilation fails due to an error on line 8
G.Compilation fails due to an error on line 9
H.Compilation fails due to an error on lines within 12 to 14.
the answer given in book is
A & B are correct. the code compiles and runs without exception. the values() method returns an array reference ,not the contents of the enum, so DIAMONDS are never printed.
please help me to sort out the mistake in my side or in book either.
How can you say third is correct. The third option says that DIAMOND is the output but it's not in the output. 30 is in the output so first option is correct. And second option is correct because the output can contain @bf73fa. Actually the last output would be a kind of garbage value. So it can be anything. You are having @923e30 but it can be @bf73fa so this option is also correct...