Loading...
Predict the output of the following code snippet: String P = "20", Q ="22"; int a = Integer.parseInt(P); int b = Integer.valueOf(Q); System.out.println(a+""+b);
String s1 = "45.50"; String s2 = "54.50"; double d1=Double.parseDouble(s1); double d2=Double.parseDouble(s2); int x= (int)(d1+d2); What is value of x?
© 2026 PadhAiPro. This question is provided for educational purposes.