S

Shivam • 8.86K Points
Tutor III

Q. What will be the output of following java code?

Code:
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));
      }
}
  • (A) Value is 67 18 String 13
  • (B) Value is 13 18 String 13
  • (C) Value is 13 18 String
  • (D) Compilation fails
  • Correct Answer - Option(A)
  • Views: 124
  • Filed under category JAVA

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.


Question analytics