A Cap is a fitting which is sealed at one end and features a female thread with rubber O-ring at the other end. A Plug is sealed at one end and features a male thread the the other end. Caps and Plugs are commonly used to seal off threaded pipe terminal ends when these are not in use.