Exocrine glands are glands that produce enzymes into ducts that carry them to other organs or outside the body. These enzymes helps in the body metabolism (e.g. digestion of food in mouth). Endocrine glands secretes hormones directly into the bloodstreams. Hormones are chemical signals that aids in the communication of cells.
Both of them produces proteins (hormones and enzymes) that are needed by the body in order to function normally. They are both composed of epithelial tissues.
Examples of exocrine glands are salivary glands, sebaceous gland, sweat glands, sublingual, mammary and the prostrate.
Examples of endocrine glands are ovaries which secrete sex hormones estrogen and progesterone directly into the bloodstream. Another example is the adrenal glands that secretes adrenaline hormones needed for a certain function.