If you are using CustomJava action and passing the object as a parameter, you can notice that the object is casted to IMendixObject in the default constructor.
From that IMendixObject you can get the ChangedDate.
Or if you have an object within the java class (by some other means), you can use .getMendixObject().getChangedDate(getContext());