What is the difference between the = operator and the == operator in Java?


= denotes an allocation, and == denotes an assignment

= denotes an assignment, and == denotes a comparison

= denotes an initialization, and == denotes a comparison

= denotes a comparison, and == denotes an assignment