Java
\nclass Solution {\n    public boolean isRectangleOverlap(int[] rec1, int[] rec2) {\n        int x1 = rec1[0], y1 = rec1[1], x2 = rec1[2], y2 = rec1[3];\n      
```\nclass Solution {\n    public boolean isRectangleOverlap(int[] rec1, int[] rec2) {\n        int x1 = rec1[0], y1 = rec1[1], x2 = rec1[2], y2 = rec1[3];\n        int m1 = rec2[0], n1 = rec2[1], m2 = rec2[2], n2 = rec2[3];\n        \n        if( (m1 >= x2) || (x1 >= m2) || (y1 >= n2) || (n1 >= y2)) {\n            return false;\n        }\n        return true;\n    }\n}\n```
[]