How are 401k withdrawals taxed?

How are 401k withdrawals taxed by the state of California and the IRS?