[Java]O(1) 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$$O(n)$$\n\n- Space complexity:\n<!-- Add your space complexity here, e.g. $$O(n)$$ -->\n$$O(1)$$\n\n# Code\n```java []\nclass Solution {\n    public int areaOfMaxDiagonal(int[][] dimensions) {\n        int a=0,b=0,maxDiagonalSquare=0;\n        for(int[] indice : dimensions) {\n            int diagonalSquare = indice[0]*indice[0] + indice[1]*indice[1];\n            if (diagonalSquare > maxDiagonalSquare) {\n                maxDiagonalSquare = diagonalSquare;\n                a = indice[0];\n                b = indice[1];\n            } else if(diagonalSquare == maxDiagonalSquare && indice[0]*indice[1] > a * b) {\n                a = indice[0];\n                b = indice[1];\n            }\n        }\n        \n        return a * b;\n    }\n}\n```
['Java']