Int Output = 10;boolean b1 = false;if((b1 == true) && - ProProfs Discuss
Topics
Products
Follow Us:

Int Output = 10;boolean b1 = false;if((b1 == true) && ((Output += 10) == 20)){ System.out.println("We are equal " + Output);}else{ System.out.println("Not equal! " + Output);}



A. Compilation error, attempting to perform binary comparison on logical data type.
B. Compilation and output of \We are equal 10\.
C. Compilation and output of \Not equal! 20\
D. Compilation and output of \Not equal! 10\.

This question is part of Test_3(27-8-2014)
Asked by Arunprasad, Last updated: Jan 16, 2020

+ Answer
Request

1 Answer

arunprasad

Arunprasad

Answered Sep 06, 2017

Compilation and output of "Not equal! 10".
 

Search for Google images
Select a recommended image
Upload from your computer
Search for Google images
Select a recommended image
Upload from your computer
Search for Google images
Select a recommended image
Upload from your computer

Email Sent
We have sent an email to your address "" with instructions to reset your password.