If it is possible, you should stop and quietly & quickly try to back off and get away from the animal; talking in a low tone during that period is highly recommended. If a black/grizzly female bear is in the nearby vicinity don’t move towards that area because you will upset the female thus increasing your chances of being attacked.
As many of you know, bears are usually good tree climbers so if cornered by a bear (especially a black bear), whatever you do, don’t climb trees because the bear will easily climb the tree. Although this might seem hazardous, you must fight back thinking that your life depends on how you react. These animals usually attack when they are very hungry or injured and they won’t give up without a fight. Don’t make the mistake of playing dead or climbing a tree because they won’t fall for it.
Whatever you do, you must always avoid direct eye contact because if you don’t, the bear will see this as a challenge and will become even more angry. You mustn’t turn your back either.
If you find yourself in the position when the bear is not leaving the area you should try to scare him by clapping your hands, yelling and throwing some objects towards him might also help.
As you can see, although incidents like these aren’t often, it is highly advisable to know what to do when you find yourself in such a situation. Try to avoid these situations because you never know what might happen and always remember: precaution will save your life.