Jai Sri Ganesha,
There is a very thin line between the two, self-confidence and the Ego,
A man of self-confidence needs to be wakeful while interact with the reality of life,
Ego is the root cause of existence of Atman in truth with individaulity,
Self confidence derived from the churning of life in truth with secrifice and disinterested serivce,
May Lord bless all,
Thanks, plaese