About Question enthuware.jwpv6.2.657 :
Posted: Mon Oct 17, 2011 9:12 am
The second option is correct too:
JLS - Chapter 9 Interfaces
http://192.9.162.55/docs/books/jls/thir ... faces.html
It's explanation is incorrect.@ServletSecurity(value=@HttpConstraint(rolesAllowed = "employee"), httpMethodConstraints = {
@HttpMethodConstraint(value = "PUT", rolesAllowed = "manager")
})
JLS - Chapter 9 Interfaces
http://192.9.162.55/docs/books/jls/thir ... faces.html
Discussion
In other words, it is permissible to omit the curly braces when a single-element array is to be associated with an array-valued annotation type element.