About stock dividends and interest

I am beginner in stock market and I need to know more about it, I have one query that “how the dividends and interests are paid to the share holders by the company ?”