If you get hacked than its your own fault. If you play smart and don't do anything stupid, you can avoid getting hacked and lose your money.
Exchanges do/can get hacked. So that is why everyone recommends not to store your coins on an exchange for a long time. And also always choose a very trusted exchange when trading coins.
Theres no such trusted exchange yet all of them do really have the possibilities on getting hacked.Theres no assurance anytime since anything on this online space do really have hackers which can penetrate security and this is why as a trader or investor we should think off on these possibilities and only store up few amounts of coins on various exchange. Better to be wary than sorry.