Computer Applications
Give the output of the following program segment:
String a="10", b="20";
int x=Integer.parseInt(a);
int y=Integer.valueOf(b);
System.out.println(x+y);
System.out.println(a+b);
Give the output of the following program segment:
String a="10", b="20";
int x=Integer.parseInt(a);
int y=Integer.valueOf(b);
System.out.println(x+y);
System.out.println(a+b);