The Droid 2 comes with a one-year warranty from Motorola, its manufacturer. If you bought your Droid 2 from someone else, or someone gave it to you, the warranty doesn’t transfer to you; it covers only the person who originally bought it.
The usual types of caveats apply to the warranty—if you’ve misused the phone, dropped it into water, or so on, the warranty gets voided.
For more details about your warranty, head to http://bit.ly/dudKyD.