Computer Science, asked by AnkurPathak68821, 8 months ago

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 acharekarnishtha386
8

(i) opn = 'b'

Object Oriented

Robust and Secure

ii) opn = 'x'

Wrong Input

iii) opn = 'a'

Platform Independent

Similar questions