What is a rules for defining annotation types

What is advantages of for-each loop