When I installed the new cabinets in our kitchen here after gutting and re-doing the kitchen, I installed a 3/4" x 3/4" x 1/18" aluminum angle along the wall for the cabinets to set on and take the weight, then I attached the top with screws into each stud, 2-3-4 per cabinet where the studs were, then 2-3-4 screw at the bottom into each stud.
I suspect my cabinets are going to stay up there, as long as the cabinets themselves stay together.
