What is JVM Hot Swapping?
Many definitions say that this feature allows code to updated on the fly during de-bugging.
And a few restrictions such as hot swapping is limited to updating method bodies only, and trying to add methods and fields to classes would not succeed.
Can anyone explain this with code.