R

Ritu Singhal • 4.36K Points
Extraordinary

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: 9
  • 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