Home / Expert Answers / Computer Science / 4-find-the-error-correct-it-and-write-output-package-javaapplication285-public-class-test-pu-pa805

(Solved): 4. Find the error, correct it and write output. package javaapplication285; public class Test \{ pu ...




4. Find the error, correct it and write output. package javaapplication285; public class Test \{ public int a, b; public Test
4. Find the error, correct it and write output. package javaapplication285; public class Test \{ public int a, b; public Test ( int \( \mathrm{i} \), int \( \mathrm{j} \) ) \{ package javaapplication 285 ; public class JavaApplication285 \{ public static void main(String|l args) \{ Test ob \( = \) new Test \( (15,20) \); System.out.println("ob.a and ob.b before call:" +ob.a +" " +ob.b); System.out.println("ob.a and ob.b after call:" + ob.a +" " tob.b); 1


We have an Answer from Expert

View Expert Answer

Expert Answer


The error in the question is math() function is n
We have an Answer from Expert

Buy This Answer $5

Place Order

We Provide Services Across The Globe