I had an interview yesterday and they give me this question, I could not find a solution :
The following code loops through a collection of HighlightEntities and writes out a list. If there are no highlights then it should write out “No highlights,” but it is possible for the page to display neither highlights nor the “No highlights” message, but not cause an error. Why?
A filter sets an attribute, “newsList”, on the request before this file is served. “newsList” is an arrayList of NewsEntity objects. The result should be an XML listing of NewsEntities.