Question: Consider the following Java code. The code is intended to add two numbers, num1 = 5, and num 2 = 3, and sum= 8.
Consider the following Java code. The code is intended to add two numbers, num1 = 5, and num 2 = 3, and sum= 8. Debug and fix. } public class ClassNameHere { public static void main(String[] args) { int num1 = "5"; int num2 = "3"; sum = num1 + num2; system.out.println(sum); }
Step by Step Solution
3.32 Rating (158 Votes )
There are 3 Steps involved in it
The snippet of Java code you provided appears to contain several mistakes Below Ill outline each iss... View full answer
Get step-by-step solutions from verified subject matter experts
