#Java 7, <s>39</s> 38 bytes

    int c(int a,int b){return~a*a*b*~b/4;}

#Java 8, <s>26</s> <s>25</s> <s>19</s> <s>18</s> 17 bytes

    a->b->a*~a*b*~b/4

Based on [*@xnor*'s excellent answer](https://codegolf.stackexchange.com/a/87191/52210). Multiple bytes saved thanks to *@DavidConrad*. [Try it here.](https://ideone.com/lraSKq)

**Test code (Java 7):**

[Try it here.](https://tio.run/nexus/java-openjdk#fcyxCoMwGATg3ae4MZFgFaUdfAYnx9LhTyoloFHMb6GIvrptaNdmueW@O9OT92jWBPBMbM1hHcOIkKRCarnOHS@z2ymlVKe7PlX1dgDTontrfjM8R3vHQNaJlmfrHtcbSIZboH157oZsXDibPhX3ThiRK@RS1v9BoVBEQalQRkGlUEXBWeHyBVuyHW8)

    class M{
      static int c(int a,int b){return~a*a*b*~b/4;}
    
      public static void main(String[] a){
        System.out.println(c(0, 0));
        System.out.println(c(1, 1));
        System.out.println(c(3, 3));
        System.out.println(c(4, 4));
        System.out.println(c(6, 7));
      }
    }

**Output:**

    0
    1
    36
    100
    588