code: public static boolean isInstantiable(Class<?> type)
     {
        if (type != null)
        {
           try
           {
              if (type.isInterface())
                 return true;
              type.getConstructor();
              return true;
           }
           catch (SecurityException e)
           {
              return false;
           }
           catch (NoSuchMethodException e)
           {
              return false;
           }
        }
        return false;
     }
docs: Determine whether or not a given {@link Class} type is instantiable.