Plug is a component of plumbing component which is generally used to close pipe opening during inspections and repairs. Plug are generally contains male threads  and are usually threaded to allow the plug to be removed for future use of the pipe.

plumbing fittings

 

Cap

Cap is a type of pipe fitting which function is same as plug but the only difference is plug contain male threads and cap contain female threads which is screws on the male thread of pipe. These are available in different materials like rubber, copper, steel, plastic etc.

 

plumbing fittings