Question: Need the code java Problem2 Variable type (2 points) Write the output with brief explanation of the following System.out.printin statements, some statement could have error
Problem2 Variable type (2 points) Write the output with brief explanation of the following System.out.printin statements, some statement could have error that you can include in your explaination public class MyVar ( public static void main(Stringt] args) ( int myintl, myint2, myint3; myintl-1; myint3-3; double mydoublel, mydouble2; mydouble1-2.0: char mychar; ENn,becuem nt2 not a. (0.25 point) System out printin (mynt1/mym2); declaned on The pandmmeter b. (0.25 point) System.out.println (myint1/5); o c. (0.25 point)System.out.printin (mydouble1/mydouble2); mychar-myintl d. (0.5 point)System.out printin (mychar); e. (0.25 point)System.out.printin (myintl/mydouble1); f. (0.5 point) System.out println (myintl+myint3/mydoublel)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
