What will be the output of the following Java code?
Check your spam folder if password reset mail not showing in inbox????
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
class booloperators { public static void main(String args[]) { boolean var1 = true; boolean var2 = false; System.out.println((var1 & var2)); } } a) 0 b) 1 c) true d) false View Answer Answer: d Explanation: boolean ‘&’ operator always returns true or false. var1 is defined true and var2 is dRead more
{
}
}
a) 0
See lessb) 1
c) true
d) false
View Answer
Answer: d
Explanation: boolean ‘&’ operator always returns true or false. var1 is defined true and var2 is defined false hence their ‘&’ operator result is false.
output: