πŸ“Š JAVA
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
πŸ’¬ Discuss
βœ… Correct Answer: (B) 16.566666644

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
203
Total Visits
πŸ“½οΈ
12 mo ago
Published
πŸŽ–οΈ
Ritu Singhal
Publisher
πŸ“ˆ
80%
Success Rate