You can ignore the last comma in arrays - http://hanuska.blogspot.com/2007/02/trailing-comma-in-arrays.html

When you try to case an Array to other Type, you will get funny exception like
<pre>Exception in thread "main" java.lang.ClassCastException: [B</pre>
Which, showing that if you call new byte[0].getClass() , you will get "[B". 