Being a creditor, bondholders have absolute priority and will be repaid before stockholders (who are owners) in the event of bankruptcy.
Being a creditor, bondholders have priority over stockholders. This means they will be repaid in advance of stockholders, but will rank behind secured creditors in the event of bankruptcy.