The good news about Java is, that its byte-code verifier (part of each JVM) is guaranteed to detect such incompatibilities at run-time.