Rejection only means that you don't fit in the profile and you need to learn more concepts.
It's important not to become sad after rejection and study what you think will make you the perfect candidate. Maybe in the future, you will have another chance to be hired by your dream company.
I was in a similar situation and now I'm in a company that has an open mind and fits with my philosophy of work and development.