Re-factoring is the method of reconstructing the code without behavior changes. One of the examples of refactoring is ‘rename’ a class or a method. If you need to change the name of a class or method, you can right-click on your class and select ‘rename’ and then we can type in the desired name.
Eclipse IDE will make sure that the name is changed everywhere without any further effort.