What will the captain do if he chooses Utilitarianism and if he chooses Deontology? what would you do in his place? Why?

Utilitarianism or deontology

The captain of a boat is smuggling a family of refugees from Nazi Germany. A German naval boat comes alongside the captain’s boat and an officer asks if there are any refugees aboard. If the captain says “yes,” the Nazi officer may come aboard and shoot them. If the captain says “no” he will, in all likelihood, continue on his way and leave the captain and refugees alone. What will the captain do if he chooses Utilitarianism and if he chooses Deontology? what would you do in his place? Why?