Question: please do it urgently sir a) There are 5 errors in the following code. Find out the lines those should be modified to remove the

please do it urgently sir
a) There are 5 errors in the following code. Find out the lines those should be modified to remove the errors. After that fill up the table below the code. Conditions: i) You CANNOT delete any line from the code. ii) You can add maximum 1 line between the code. //Subtraction.java package subtractionpackage; public class Subtraction { int num ( =5 ); protected int subtractTwoNumbers(int ( mathrm{n} 1 ), int ( mathrm{n} 2 ) ) { return ( mathrm{n} 1-mathrm{n} 2 ); } } //SubstractionChildTest.java package subpackage; class SubtractionChildTest { private String str = "CSE310 is fun to learn!!!"; public static void main(String[] s) { SubtractionChildTest obj ( = ) new SubtractionChildTest(); System.out.println(obj.subtractTwoNumbers(110, 22)); System.out.println(obj.num); System.out.println(str); } @Override private int subtractTwoNumbers(int ( mathrm{n} 1 ), int ( mathrm{n} 2 ) ) { return ( mathrm{n} 1-mathrm{n} 2 ); } } Write similar lines in your answer script.
 please do it urgently sir a) There are 5 errors in

//Subtraction,java package subtractionpackage; public class Subtraction \{ int num =5; protected int subtractTwoNumbers(int n1, int n2 ) \{ return n1n2; \} \} //SubstractionChildTest.java package subpackage; class SubtractionChildTest \{ private String str = "CSE310 is fun to learn!!!"; public static void main(String[] s) \{ SubtractionChildTest obj = new SubtractionChildTest(); System.out.printin(obj.subtractTwoNumbers(110, 22)); System.out.printin(obj.num); System.out.printin(str); \} @Override private int subtractTwoNumbers(int n1, int n2 ) \{ return n1n2; \} \} Write similar lines in your answer script

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!