Answer to Question #268031 in Java | JSP | JSF for Candy

Question #268031

int a = 5, b = 10, c = 16, d = 0;

What are the outputs after the following Java statements are executed?

(a) if ( d )

else

system.out.println( “true” ); system.out.println( “false” );

(b) if ( a != 5 || b = = 10 ) system.out.println( “true” );

else

system.out.println( “false” );

(c) if ( b <=a && c/d)

system.out.println( “true” );

else

(d) if (a > 5 || d) else

system.out.println( “false” );

system.out.println( “true” ); system.out.println( “false” );

(e) if ( a*d >= d++ )

system.out.println( “true” );

else

system.out.println( “false” );

(f) if (d/a < c*b )

system.out.println( “true” );

else

system.out.println( “false” );


1
Expert's answer
2021-11-23T05:18:52-0500

a. false

b. true

c. false

d. false

e. true

f. true


Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS