Technical foul!

2 techs each player and that player is out for the game.
All technical fouls will result in the opposing team receiving two (2) foul shots and possession of the ball.

How does one get a technical foul?