explain the following code public class FirstEx_2ExplainCodes { static int counterObj= 0; public double salary = 0; public static void main(String[] args){ System.out.println(counterObj);...


explain the following code<br>public class FirstEx_2ExplainCodes {<br>static int counterObj= 0;<br>public double salary = 0;<br>public static void main(String[] args){<br>System.out.println(counterObj);<br>FirstEx_2ExplainCodes obj = new FirstEx_2ExplainCodes();<br>System.out.println(obj.salary);<br>Scanner in = new Scanner(System.in);<br>while(in.nextDouble() != -1){<br>obj.salary = in.nextDouble();<br>System.out.println(obj.salary);<br>}<br>}<br>

Extracted text: explain the following code public class FirstEx_2ExplainCodes { static int counterObj= 0; public double salary = 0; public static void main(String[] args){ System.out.println(counterObj); FirstEx_2ExplainCodes obj = new FirstEx_2ExplainCodes(); System.out.println(obj.salary); Scanner in = new Scanner(System.in); while(in.nextDouble() != -1){ obj.salary = in.nextDouble(); System.out.println(obj.salary); } }

Jun 07, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions ยป

Submit New Assignment

Copy and Paste Your Assignment Here