In a consumer bankruptcy, is the debtor relieved of state tax liens? Federal tax liens?

(I will be the first to admit that I know nothing about bankruptcy; if I haven't given you enough info, ask me. Thanks.)