What is the result?

<code>
boolean log3 = ( 5.0 != 6.0) && ( 4 != 5);
boolean log4 = (4 != 4) || (4 == 4);
System.out.println(“log3:”+ log3 + \nlog4” + log4);
</code>
What is the result?


boolean log3 = ( 5.0 != 6.0) && ( 4 != 5);
boolean log4 = (4 != 4) || (4 == 4);
System.out.println("log3:"+ log3 + \nlog4" + log4);

What is the result?

A.
log3:false
log4:true

B.
log3:true
log4:true

C.
log3:true
log4:false

D.
log3:false
log4:false



Leave a Reply 0

Your email address will not be published. Required fields are marked *