Java · Medium · ProDifferentiate between composition and aggregation. Which is preferred and why?JavaOOPDesign Principles