Making the method static does not change where its variables are stored.
At the end of testAllocation()
there will be four references (allocation1, allocation2, allocation3 and allocation4) on the stack.
These four references will refer to four byte arrays that are stored on the heap.