What is the difference between egoism and egotism?

egoism is to do with self-interest and the path needed to take to get to something wanted.

egotism is to think/talk about oneself when its unwarranted and to overexagerate ones self, or to see themseleves as the greatest.