You have received so much good advice already, (most of which I actually agree with!!!), that I am going to say only one thing, and it is the most important, and can not be said too many times: If you are going to have a firearm of any kind for self protection, you MUST have the mindset to actually use the weapon against another human being when the time comes. You will not have time to think it over then. If you have not already made that decision and the time comes, you will end up with the bad guy having your gun.

And you must know the laws re lethal force in your area(some states will allow you to shoot anyone who enters your residence uninvited, others will fry you).

You will probably be arrested on the spot, and the bad guy, or his survivors, will try to sue you for wrongfull death, you name it.

So be prepared for the aftermath of your actions. Then blast the SOB!!!
_________________________
OBG