Government bonds and corporate bonds operate in exactly the same way. As the name suggests, the only difference is that one is issued by a government, and the other is issued by a corporation (company).