Did I sprain or jam my hand rebounding the basketball? Hurts like h***

Depends. This is very difficult to evaluate. It is very common to break (fracture) fingers, or tear ligaments in basketball. More than likely, if it continues to hurt, swell, or limit motion, you should have it checked and x-rayed.