Question: what is the difference between = (single-equal) and == (double-equal) in java?
Answer: Single equal is an assignment operator used to assign the values to the variables. But, double equal is relational operator used to compare two variable values whether they are equal are not.