wise guy

[wise guy] {n. phr.}, {informal} A person who acts as if he weresmarter than other people; a person who jokes or shows off too much

Bill is a wise guy and displeases others by what he says.