Evaluate the following Java code snippet:
final int NUM1 = 10, NUM2 = 20; int total = NUM1 + NUM2;
A runtime error occurs
total equals 10
A compilation error occurs
total equals 30