3 ms·
Another flaw we can abuse is Java's covariant array types: Object[] objects = new Integer[] {1, 2, 3}; objects[0] = "hello"; Also compiles but fails a
by dlubarov 8y ago
Another flaw we can abuse is Java's covariant array types:
Object[] objects = new Integer[] {1, 2, 3};
objects[0] = "hello";
Also compiles but fails at runtime.