In Java, the '==' operator is used for comparing primitive types as well as object reference variables. However, there is no '===' operator in Java. This operator exists in languages like JavaScript, but not in Java.