private static boolean isSupportedSyntax(Statement stat,String sql){
  try {
    stat.execute(sql);
    return true;
  }
 catch (  SQLException ex) {
    return false;
  }
}

private static boolean isSupportedSyntax ( Statement stat , String sql ) { try { stat . execute ( sql ) ; return true ; } catch ( SQLException ex ) { return false ; } }
return if the syntax is supported otherwise false
