Confident would be knowing you can do somethingLike if you trained, studied, or prepared a lot You know your ability and you're pretty sure of yourself Whereas arrogance is just thinking you're the shit at everything Even if you are unqualified to do so
Confidence: I'm good at this/I hold this opinion.Arrogance: I'm better than everyone at this and I need them to know it/My opinion is objectively correct and I need everyone to know it.