A throw into an opponents goal without touching anyone results in a goal kick.

A thrown into your own goal without touching anyone results in a corner kick.