private boolean isTransient(Field field){
  int modifier=field.getModifiers();
  if (Modifier.isTransient(modifier)) {
    return true;
  }
  return false;
}

private boolean isTransient ( Field field ) { int modifier = field . getModifiers ( ) ; if ( Modifier . isTransient ( modifier ) ) { return true ; } return false ; }
this is used to determine if a field is transient . for default fields that are processed no transient field should be considered . this ensures that the serialization of the object behaves in the same manner as with java object serialization .
