Additional District and Sessions Judge S K Jha accepted police's prayer seeking Rocky's custody and granted permission.
The court had yesterday sent to 14 days' judicial custody the son of absconding JD(U) MLC Manorama Devi and RJD strongman Bindi Yadav.
Rocky, whose real name is Rakesh Ranjan Yadav, is accused of killing Class XII student Aditya Sachdeva after their car did not allow SUV of the accused take over on Saturday night.
After remaining in hiding at his father's mixer plant in Bodh Gaya, Rocky was arrested early yesterday after over 50 hours.
Bindi and Rajesh were arrested on Sunday for allegedly helping Rocky escape.