Java | One Line Solution | Beats 100% Time | 0ms | O(1) Space & Time
\nclass Solution {\n    public boolean isRectangleOverlap(int[] rec1, int[] rec2) {\n        return rec1[0]<rec2[2] && rec1[1]<rec2[3] && rec1[2]>rec2[0] && rec
```\nclass Solution {\n    public boolean isRectangleOverlap(int[] rec1, int[] rec2) {\n        return rec1[0]<rec2[2] && rec1[1]<rec2[3] && rec1[2]>rec2[0] && rec1[3]>rec2[1];\n    }\n}\n```
['Java']