hang your food according to bear protocol and keep a clean camp and you should have no problems
when hiking in black bear country I don't carry pepper spray, when hiking in grizzly country I always carry pepper spray
while it's true that 99.9% encounters with black bears ends up w/ the bear running off, there is always that 0.1% that could be dicey- I've experienced numerous grizzly and black bear encounters and the one and only bad experience I've had, was w/ a black bear. It wasn't until years later that I learned about a rather rare (but well documented) behavior (almost always w/ large, male black bears)- it's a predatory behavior where they are basically sizing you up for a meal- it's typically not fast or aggressive; rather it's slow, methodical and calculating and can be very unnerving. In my case I was setting up camp at high mountain lake where I noticed a large black bear. I hollered, bang pots, etc to no avail- the bear kept advancing around the lake- slowly. I wasn't concerned, I took it up a notch w/ the noise, thinking he would run off- no such luck. I started packing up with the intention of leaving the lake all to him, he advanced close enough I started pitching rocks- this didn't stop him advancing (slowly mind you). With my pack on I left the lake, he followed- now I am concerned. Every once in awhile I'd stop, yell, pitch a few rocks- all to no avail. Eventually (probably close to a mile) he quit following, I'll admit that night wasn't the most comfortable one I've had in the backcountry- every broken twig and any other noise found me fully awake!
I share that story not to frighten anyone, just so you know if you encounter that behavior, you'll recognize it for what it is. It's rare fortunately, but every once in awhile it does happen- knock on wood not to me again