According to the Java API, the constructor Date(year, month, day) is deprecated. I know that I can replace it with the following code:
Date(year, month, day)
Calendar myCa
This is yet another reason to use Joda Time
new DateMidnight(2010, 3, 5)
DateMidnight is now deprecated but the same effect can be achieved with Joda Time DateTime
DateTime
DateTime dt = new DateTime(2010, 3, 5, 0, 0);