If the opponent has established position out of bounds (at least one foot on the floor) then the ball would still be yours. If the opponent is in the air and has not established position out of bounds the ball is still live.
That is called a foul or 'personal foul'.
Assuming it has come of an opponent; if it crosses a side line its a throw in, if its a base line it is either a corner (attacking end) or a Goal Kick (defensive end)
a throw in, in soccer is awarded when the ball is out of bounds but only on the side lines
in order for a ball in basketball to be considered to be out of bounds the ball MUST touch/hit the ground out bounds ... if the ball does not touch/hit out of bounds the ball is still live a play can go out of bounds to throw/pass the ball back in bounds so long as the player that is going for the ball bounds feet are in the air when he makes contact with the ball ...
A basketball player has 5 seconds to throw the ball in bounds during a game.
When a ball goes out of bounds at a sideline, the game stops, and the opposing team is awarded possession. The player taking the throw-in must re-establish the ball in play from the spot where it crossed the boundary line. This is typically done with a throw-in, where both feet must remain on the ground, and the ball is thrown with both hands over the head. The game resumes once the throw-in is executed.
5 seconds
no never
It is called a "Throw in".
18 Feet maybe 15 feet from the backboard in the NBA, high school and maybe middle school, but 12 for elementary and lower
You have to beat up your opponent so badly you can throw them in the ambulance
When the ball goes out of bounds in a game, the play is stopped, and the referee will signal for a stoppage. The game resumes with a throw-in, corner kick, or goal kick, depending on how and where the ball went out. The team that did not touch the ball last before it went out will typically take the throw-in or kick. Players must be positioned correctly, and the game restarts once the referee gives the signal.