An item of credit that's still 'live' will be 6 years from the point its settled. I.e if you make every payment but miss the last 3 payments on a credit card, clear the balance and close the account your credit profile would show 321000000000 'Settled'
A default is classed as a 'settled' account once it shows status 8 in the payment profile.....eg 8666654333210 (no such thing as a status 7)
A CCJ I think stays for 6 years from the point of it being granted so technically yes you could default 5 years ago, get a CCJ last year and have to wait another 6 years until it disappears however the original default would drop off after 6 years leaving only the CCJ
A CCJ has a double impact on credit file as you still have the original default as well! therefore it looks like 2 items of adverse credit to the credit scoring systems.
Sent from my HTC One mini using Tapatalk