Easy java solution
Intuition\n Describe your first thoughts on how to solve this problem. \n\n# Approach\n Describe your approach to solving the problem. \n\n# Complexity\n- Time 
# Intuition\n<!-- Describe your first thoughts on how to solve this problem. -->\n\n# Approach\n<!-- Describe your approach to solving the problem. -->\n\n# Complexity\n- Time complexity:\n<!-- Add your time complexity here, e.g. $$O(n)$$ -->\n\n- Space complexity:\n<!-- Add your space complexity here, e.g. $$O(n)$$ -->\n\n# Code\n```\nclass Solution \n{\n    public boolean isRectangleOverlap(int[] rec1, int[] rec2) \n    {\n    int left=Math.max(rec1[0],rec2[0]);\n    int right=Math.min(rec1[2],rec2[2]);\n    int top=Math.min(rec1[3],rec2[3]);\n    int bottom=Math.max(rec1[1],rec2[1]);\n    if(right>left&&top>bottom)\n    return true;\n    else\n    return false;        \n    }\n}\n```
['Java']