The city ordinance where I live indicates that it's acceptable to ride on a sidewalk as long as you operate the bike in a safe manner vis-a-vis other people using the sidewalk. I would expect, then, to have the same rights as a pedestrian. That said, I don't like riding on sidewalks because I don't feel confident that drivers will notice me. Drivers (and I'm guilty of this too) get fixated on oncoming traffic, that they forget to look for sidewalk traffic. This is especially true on one way streets where pedestrians and cyclist sometimes walk/ride against traffic. If, for some reason, I had to use a sidewalk, I'd pay particular attention at intersections, parking lots, alleys, etc., for cars pulling into my path.
But as a driver (and a lawyer), I don't get too caught up in who has the right of way. It's just not a debate I'd want to lose the hard way, i.e., by hitting someone or otherwise causing an accident. I drive defensively whether I'm in my car or on my bike.
Live with intention. Walk to the edge. Listen hard. Practice wellness. Play with abandon. Laugh. Choose with no regret. Continue to learn. Appreciate your friends. Do what you love. Live as if this is all there is.
--Mary Anne Radmacher