What will be the output. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

What will be the output.

Guess the tricky output public class A {     public static void main(String[] args)     {         System.out.println('j' + 'a' + 'v' + 'a');     } }

26th May 2019, 2:24 PM
Himanshu
Himanshu - avatar
1 Answer
+ 5
ascii code: j : 106 a : 97 v : 118 -> j + a + v + a = 106 + 97 + 118 + 97 -> output: 418
26th May 2019, 2:43 PM
Denise Roßberg
Denise Roßberg - avatar