Objective questions on switch case in java and answers
(1)
public class SwitchCase {
public static void main(String[] args) {
int a=12;
switch(a){
case 014:
System.out.print("I know java");
break;
case 12:
System.out.print("I don't know java");
default:
System.out.print("I also
No comments:
Post a Comment