How to replace classes in a running application in java ?
Say I have a class named NameGenerator . I can use this to generate names according to a given logic. Then I write a TestNameGeneration class with a method that asks for a letter from the user and generate a name in accordance. Now I want to change the logic in NameGeneration class and apply that particular change without stopping the application. I did this to learn more about class loaders and can someone please explain the key concepts that I have to learn to do something like that or site any references ? Here is a working test. Every 5 secs Test.main() reloads test.Test1.class from the