Computer Science, asked by harshef7175, 1 year ago

What will be the output of the program? float f = new float("12"); switch (f) { case 12: system.out.println("twelve"); case 0: system.out.println("zero"); default: system.out.println("default"); } a zero b twelve c default d compilation fails?

Answers

Answered by aakarsh09
0
Well compilations fail should be the answer because s of system is small.


otherwise twelve

aakarsh09: follow me if you liked my answer
Similar questions