Inner class has some compatible problems when serialized and de-serialized by using different releases of JRE so that developers are not encouraged to use inner classes.