Question: Question 6 int num1 = 3, num2 2; What value will z have if we execute the following assignment statement? float z = num1 /

Question 6 int num1 = 3, num2 2; What value will z have if we execute the following assignment statement? float z = num1 / num2 ; O A z will equal 1.5 OB, Z will equal 1 0 O c. z will equal 0.0 OD. none of the above, a run-time error arises because z is a float and 3/2 gives an Question 7 What will the following code fragment print out? String myString = "Java", System.out.println(myString.toUppercase0+ "or "+ myString): 0 A java or Java ) B. Java or Java O C. JAVA or JAVA O D. JAVA or Java
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
