Difference between static and non-static java inner class in Java