Confidence is knowing you have the skills necessary to perform well. Cockiness is telling other people that you are good. The difference between knowing and telling may sound small, but actually has a large impact on actual performance.