A black bear, unless it is a sow with cubs —and you get between her and her cubs — is much less dangerous than a grizzly bear. Usually you wouldn’t even know it was there, as it would try to avoid humans. It is when they become used to humans, often by feeding out of human garbage, that black bears become dangerous.
Try to go around them rather than have a path confrontation. Don't run.
Well said and true. Grew up around them in Montana.