What is test annotation in TestNG?

What is test annotation in TestNG?

The next method to be executed in the test script is controlled by TestNG annotations. Before each method in the test code, TestNG annotations are defined. Any method that is not preceded by annotations will be disregarded and will not be run as part of the test code.