final class MyClass { static final int[] arr = {1,2,3}; void test() { arr = new int[] {4}; } }