code: public static String getPrimitiveDefault(Class type) {
          if (type == Boolean.class) {
              return "false";
          }
          if (type == Character.class) {
              return Character.toString((char) 0);
          }
          return "0";
      }
docs: Gets the default value as String for the primitive types.
  
  @param type the primitive type
  @return the default value as String