MCQOPTIONS
Saved Bookmarks
| 1. |
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 |
| Answer» E. | |