Super Logical Solution Using Java
\n\n# Superb Solution using JAVA\n\nclass Solution {\n    public int maximumProduct(int[] nums) {\n      Arrays.sort(nums);\n      int n=nums.length;\n      ret
\n\n# Superb Solution using JAVA\n```\nclass Solution {\n    public int maximumProduct(int[] nums) {\n      Arrays.sort(nums);\n      int n=nums.length;\n      return Math.max(nums[0]*nums[1]*nums[n-1],nums[n-1]*nums[n-2]*nums[n-3]);  \n    }\n}\n```
['Java']