A

Admin • 832.52K Points
Coach

Q. What will be the output of the following Java code?
class asciicodes {
public static void main(String args[])
{
char var1 = 'A';
char var2 = 'a';
System.out.println((int)var1 + " " + (int)var2);
}
}

  • (A) 162
  • (B) 16.566666644
  • (C) 67 95
  • (D) 66 98
  • Correct Answer - Option(B)
  • Views: 23
  • Filed under category Java
  • Hashtags:

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.