8. Give the output of the following code fragment:when (1) opn = 'b' (ii) opn = 'x' (i) opn = 'a'switch (opn)case 'a':System.out.println("Platform Independent");break;case 'b':System.out.println("Object Oriented");case 'c':System.out.println("Robust and Secure");break;default:System.out.println("Wrong Input");
Answers
Answered by
8
(i) opn = 'b'
Object Oriented
Robust and Secure
ii) opn = 'x'
Wrong Input
iii) opn = 'a'
Platform Independent
Similar questions
Computer Science,
4 months ago
Math,
4 months ago
Social Sciences,
4 months ago
English,
8 months ago
Science,
8 months ago
Biology,
11 months ago
English,
11 months ago