What are the final values of m, n and s in the following java program? Int m, n; String s; String v =’’3’’; m =Integer.parseInt(v + v + ‘’4’’); n...

      

What are the final values of m, n and s in the following java program?
Int m, n;
String s;
String v =’’3’’;
m =Integer.parseInt(v + v + ‘’4’’);
n = Integer.parseInt(v + v) + 4;
s = Integer.toString(Integer.parseInt (v)
+ Integer.parseInt (v)) + ‘’4’’;

  

Answers


Davis
The final values of m, n, and s are 334, 37 and 64
Githiari answered the question on January 26, 2018 at 12:32


Next: Message dialogs can display a string.What do the following message dialogs display? JOptionPane.showMessageDialog(null, ‘’5’’ +...
Previous: What are the values of a, b, c, I, j, k after the following java code is executed inti, j, k; double a, b, c; int n =...

View More Computer Studies Questions and Answers | Return to Questions Index


Exams With Marking Schemes

Related Questions