Feelings of confidence depend upon the type of thoughts that habitually occupy your mind. Think defeat and you are bound to feel defeated. But practise thinking confident thoughts, make it a dominating habit, and you will develop such a strong sense of capacity that regardless of what difficulties arise you will be able to overcome them.