Question: Which statements when inserted at (1) will not result in a compile-time error? Select the three correct answers. (a) int result1 = i (b) int
Which statements when inserted at (1) will not result in a compile-time error?
![public class RQ05A200 ( public static void main (String [] args) {](https://dsd5zvtm8ll6.cloudfront.net/images/question_images/1706/9/3/8/09765bdcef16a9681706938095091.jpg)
Select the three correct answers.
(a) int result1 = i
(b) int result2 = i
(c) Number number = i
(d) System.out.println(i
(e) System.out.println(i
(f) System.out.println(i == j ? i == j : "i not equal to j");
public class RQ05A200 ( public static void main (String [] args) { int i= 20; int j = 30; // (1) INSERT STATEMENT HERE.
Step by Step Solution
3.32 Rating (161 Votes )
There are 3 Steps involved in it
c e and f In a the third operand has the type double which is not assignment compatible with the typ... View full answer
Get step-by-step solutions from verified subject matter experts
