Using packages and interfaces in java certainly results in
better organized code and functionality. It is a good coding practice to wrap
codes using packages for organizing similar files in one place and to use interfaces
wherever common functionality is required more than once.
By Debjani Mallick