MCQOPTIONS
Saved Bookmarks
| 1. |
Which two are acceptable types for x? 1. byte 2. long 3. char 4. float 5. Short 6. Long switch(x) { default: System.out.println("Hello"); } |
| A. | 1 and 3 |
| B. | 2 and 4 |
| C. | 3 and 5 |
| D. | 4 and 6 |
| Answer» B. 2 and 4 | |