if(hoge.length >= 3 & hoge[2].equals("hage")){
}
だとショートサーキット評価が行われないから、
hoge[2]が無ければArrayIndexOutOfBoundsExceptionが投げられる。