As we know from official TestNG documentation:
@BeforeClass: The annotated method will be run before the first test method in the current class is invok
@BeforeClass:
My opinions:
@BeforeClass:The annotated method will be run before the first test method in the current class is invoked
@BeforeTest:The annotated method will be run before any test method in the current suite is run