What are the advantages of first recording transactions in the journal and then posting to the ledger?

What are the advantages of first recording transactions in the journal and then posting to the ledger?