There is a little difference between confidence and overconfidence. I would like to explain this with an example. I can solve this problem this is confidence. Confidence is realistic. And I only can solve this problem this is over confidence. Overconfidence is just show off.
Confidence means that I can solve the problem.
Over confidence means that only I can solve the problem.