This is possible up to a point in the debugger since it uses hot-swapping (Intellij im not sure but I guess, Eclipse yes).
You cannot modify the class signature (remove/add fields, method, etc), while in the debugger.
But you can modify the body of a method (very useful to change parameter/ constants).
Your IDE should show your a warning if something could not be hot swapped.