A cake can become dense and rubbery if the batter is overmixed, and also if the cake is overbaked.