I'd like to compare these two words in terms of meaning and usage.It seems like they mostly overlap to me but there are possible subtle differences.
I tried to give as many example as to discern the difference. Do you think the meaning of the sentences would change if I swap the words each other in the following sentences.
To foray into means
a short period of time being involved in an activity that is different from and outside the range of a usual set of activities
She made a brief foray into acting before becoming a teacher
After a brief foray into politics, she returned to where she is most comfortable - in the company of words.
Anna’s forays into cooking were never very successful.
To dabble in means
to try something or take part in an activity in a way that is not serious
He first dabbled in politics when he was at law school.
It's astounding that, at 24 years of age, the stand-up comic has already dabbled in more professions than most people attempt in a lifetime.
When he was younger he dabbled in astrology.