GIAC GSSP-Java Question Answer
Peter works as a Programmer in Magi Net Inc. He writes the following code.
1. class Ques0190{
2. public static void main(String[] argv){
3. byte a = 100;
4. switch(a){
5. case 10.
6. System.out.println("ten");
7. case 100.
8. System.out.println("hundred");
9. case 1000.
10. System.out.println("thousand");
11. }
12. }
13. }
What will happen when Peter attempts to compile and execute the code?