Given:
What is the result?
A. 2 : 30
B. 4 : 0
C. 4 : 60
D. 4 : 60
2 : 30
3 : 20
1 : 10
E. The program prints nothing.
Given:
What is the result?
A. 2 : 30
B. 4 : 0
C. 4 : 60
D. 4 : 60
2 : 30
3 : 20
1 : 10
E. The program prints nothing.
Be aware while taking an exam, there is maybe a typo in the question, if third Product instance is instantiated like
new Product(3, 20), then the answer would be 4:60 which is stated under option C.
Otherwise, the correct answer is 4:70 which is not stated as an answer option.
4:70
None is right
Arrays.asList not support function add
Correct
4:70
neares would be C but the real result would be 4:70