Computer Science, asked by UniquePrincess1234, 8 months ago

What is the Difference between && and & operator. ​

Answers

Answered by sakshikhatal33
1

Answer:

A Bitwise and operator is represented as'&' and a logical operator is represented as'&&'

Answered by bhoomidarak
1

Answer:

&& operator in java is a logical operator. These operators are used for forming more complex expressions. They are used for combining two relational expressions.

"&" is bitwise AND & is a bitwise operator and compares each operand bitwise.

It is a binary AND Operator and copies a bit to the result if it exists in both operands.

Keywords to use is that && is a logical operator which will result in true or false where as & is a bitwise operator.

Similar questions