How much does missing one or two classes affect you? UC Davis CS

If you’re missing third semster physics, will it affect you much?
Also, if you know java instead of c++, will this also affect your chances of getting in?