I am looking for a career advice as I am interested in chemistry and electronics at the same time but the universities somehow have the two as different major. Is there any branch of engineering that combines the two?
You could follow either Chemistry (Science), Chemical Engineering or Electrical Engineering and purse a career in Semiconductors. There are many variation in Semiconductor that fall either into chemistry or electronics. Below is small sample of options
Welcome to SE. Since your interest pertains to do very distinct field, I would recommend in taking one field as a major and the other as minor with key subjects you are interested in. Electro-Chemistry is maybe you are interested in so check with the university program that if they offer it.