"To be or not to be, that is the question" is a famous soliloquy from which play?

a
Macbeth
b
Julius Caesar
c
Othello
d
Hamlet

d. Hamlet