Find output for below code : public class Demo public static void main(String[] arr) { Integer num1 100; Integer num2 = 100; Integer num3 = 500; Integer num4 = 500; if(num1--num2) {...


Find output for below code :


public class Demo


public static void main(String[] arr) {


Integer num1 100;


Integer num2 = 100;


Integer num3 = 500;


Integer num4 = 500;


if(num1--num2) {


System.out.println("num1 = num2");


}


else{


System.out.println("num1 = num2");


}


if(num3 num4){


System.out.println("num3 num4");


}


else{


System.out.println("num3 = num4");



Choices:


a) num1 == num2


num3== num4


• b) num1 == num2


num3!= num4


c) num1 != num2


num3= num4


d) num1 != num2


num3 !=num4



Jun 05, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here