Where is the error in the above Java code snippet and what type of error is it (syntax, runtime, or logic)?
public class JavaTest {
public static void main(String[] args) {
final int MAX_VALUE = 100;
int number1 = 50;
int number2 = 25;
int result;
number1 += 5;
result = number1 + number2 / MAX_VALUE;
System.out.println("Final result: " + result);
System.out.println("Average value: " + result / 0);
}
}