Many cars have automatic braking systems. You need to learn more about the specific model you are interested in and learn if this option is available. But generally speaking, in most newer cars this system comes as a standard or can be optioned out.