Main method of a class can be called from another class as it is static method

Reference: https://stackoverflow.com/questions/2550310/can-a-main-method-of-class-be-invoked-from-another-class-in-java