Question: what is the difference between & and && operators in java?
Answer: & is a bitwise operator and compares each operand bitwise. Whereas && is a logical AND operator and operates on boolean operands. ... If both the operands are true, then the condition becomes true otherwise it is false.