Relational operators in Java are mostly used either in If condition or Loops. The Relational operators check relationship between 2 variable