The classical and quantal behavior of a particle in an infinite potential well, that is periodically kicked is studied. The kicking potential is K|q|α, where q is the coordinate, while K and α are constants. Classically, it is found that for α > 2 the energy of the particle increases diffusively, for α < 2 it is bounded and for α = 2 the result depends on K. An approximate formula for the diffusion coefficient is presented and compared with numerical results. For quantum systems that are chaotic in the classical limit, diffusive growth of energy takes place for a short time and then it is suppressed by quantal effects. For the systems that are studied in this work the origin of the quantal localization in energy is related to the one of classical chaos.