First thing... you should be wearing your helmet. I've had friends hit by cars while riding their bikes and they probably would've died had they not been wearing helmets.
Depending on what City/County you live in, there will be varying laws on whether or not bicyclists can ride on the sidewalk. You can always call your City Hall or Public Works department to find out.

