public static boolean isPrivate(int mod){
  return Modifier.isPrivate(mod);
}

public static boolean isPrivate ( int mod ) { return Modifier . isPrivate ( mod ) ; }
returns if modifier is private . note that in our case modifier can be mix ( public and private for example ) .
