Class test public static void main

Determine output:public class Test{ public static void main(String… args){ int a=5 , b=6, c=7; System.out.println(“Value is “+ b + c); System.out.println(a + b + c); System.out.println(“String ” + (b+c)); }}

Value is 67 18 String 13

Compilation fails

None of these

Value is 13 18 String 13

Value is 13 18 String

Class test public static void main

Ans

Value is 67 18 String 13

Follow:
Megha Chandrashekar is a former Special Education Assistant who now spends her days running after her toddlers, all the while pursuing a freelance writing career