Unless it is an empty sidewalk is in a suburban development of some sort, it is usually not a good idea to ride on them because people aren't expecting a bike to come barreling along and they can make sudden stops and turns, leading to accidents. You could ride on the sidewalk really slow, but...