Hier mal ein Negativ-Code :-)

Code:
try {
 while(true) {
  Object value = meinArray[i++];
  // do something
 }
} catch(ArrayOutOfBoundsException ex) {
 // do nothing, as this just means, that we reached the array's end 
}