code: public static boolean isJava5() {
          if (!java5Determined) {
              try {
                  java.util.Arrays.copyOf(new byte[0], 0);
                  isJava5 = false;
              } catch (java.lang.NoSuchMethodError e) {
                   isJava5 = true;
              }
              java5Determined = true;
          }
          return isJava5;
      }
docs: Returns if it is a Java version up to Java 5.
  
  @return true if the VM is <= Java 5