The generalized -connectivity of a graph was introduced by Chartrand et al. in 1984. As a natural counterpart of this concept, Li et al. in 2011 introduced the concept of generalized -edge-connectivity. In this paper, we completely determine the precise values of the generalized -connectivity and generalized -edge-connectivity for the Cartesian products of some graph classes.