1

int a=5;
int b=7;
int c=a+b;
Which of the following statement will print Sum of 5 and 7 is 12

  • System.out.println(“Sum of a and b is “+c);

  • System.out.println(“Sum of +a and +b is”+c);

  • System.out.println(“Sum of “+a” and “+b+” is “+c);

  • System.out.println(“Sum of “+a+” and “+b+” is “+c);