A device for dispensing a dental material includes a nozzle head, a hand piece and a locking mechanism for locking the nozzle head and the hand piece. The locking mechanism includes a snap connection and a screw connection. The locking mechanism is operable between a locked position in which the snap connection is engaged for retaining the nozzle head and the hand piece with each other and in which the screw connection is disengaged and a secured position in which the snap connection is disengaged and in which the screw connection is engaged for retaining the nozzle head and the hand piece with each other and a released position in which the snap connection and the screw connection are disengaged.