You buy part of the share in a company say google or apple and so u put some money in to the share and u could earn money or loose only the amount u put in if the company u invest in looses a lot of money your technology not hurt because the money u put in could double or just disappear.