The answer to your question could last an hour or more, but I'm sure you don't have that long, nor do I. But there are some very good resources at your disposal to read up on. Check out the following links:
If you tread carefully, and have a an agent who has experience in buying HUD homes represent you, they can be a very, very good investment.
Best of luck,