Accidentally using the assignment operator “=” when you meant to use the comparison “is equal to” operator “==” is a common programming mistake.Research whether or not the compiler can catch this mistake. Additionally, experiment with a statement similar to if (6 == myVariable) and see if it compiles correctly.If you determine that the compiler will not catch this mistake, discuss a programming practice that can help reduce these errors.