InterviewSolution
Saved Bookmarks
| 1. |
Give the output of the following :int m=6, n=9;System.out.println(“M+N=”+m+n); |
| Answer» N:-➡Give the OUTPUT of the following code. Solution:-Given code, int m=6, n=9;System.out.println(“M+N=”+m+n);Here, m=6 and n=9In the print STATEMENT, m+n will given output as 69 because m and n are not ADDED, they will be considered as strings. So, required output:-M+N=69For VERIFICATION, check out the attachment. | |