What is a sub domain and how does it work?

An example of a sub domain is http://stock.domain.com

When you create a sub domain with us stock.domain.com would point to the stock folder in your public_html directory unless otherwise specified. These are not forwarders, but true apache sub domains.