Bears don't like people. Bears don't want to eat people. You're not a common food source. Your snacks however, are. If you camp, don't leave your food out in the open, or your garbage. Bears have a great sense of smell, so if you're approached, they're probably after your food. Bears are foragers mostly, and only rarely hunting things like fish.
If you run into a bear, and you don't threaten it, it will probably turn and go the other way. Bears don't want confrontation anymore than you do.
Bears don't like surprises. If you're hiking: talk, sing, wear bells, play music. Just make your presence known. Especially if vegetation is thick and you might be hard to see. A bear will probably hear you and go the other way. Bears see almost as well as people, so it may see you before you see it, and it will definitely smell you before you see it. The sooner they know you're coming, the better head start you give them to get out of your way.
If you see one and want to photograph it, stay out of its personal space. When their personal space is encroached upon, they feel threatened. This is when people get hurt, getting too close to wild animals.
Bears are very curious. If you run into one, you should identify yourself. Talk in a normal tone. It may stand up to get a better look at you. A standing bear isn't aggressive, its curious. an aggressive bear stays on all fours and runs. If it does run at you, don't run. You can't outrun the bear. Wave your arms, and talk in a deep, aggressive tone. Do not squeal. Bears like dogs will chase small, running things
Education is your weapon against bears. The more you know about them and the more you understand them, the more armed you are.
I hope you enjoy your vacation!