In Act II and Scene II of Hamlet, we see Polonius and Claudius talking about the possibility that Hamlet is crazy, insane. Polonius is sure of this insanity because he has already seen Hamlet with strange behaviors, like walking alone in the gallery for hours and besides, he read a note that Hamlet sent to Ophelia that reinforced the impression of madness that the youth possessed.
Claudius is hearing everything clearly and has some doubts about Hamlet's madness. The whole conversation took place in the presence of Hamlet's mother, who believes that the son may have gone mad because of the grief in the father's death and the mother's marriage to the man who occupied Hamlet's father's throne.