- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
What is a composition in Java?
The composition is also a type of aggregation where the relationship is restrictive i.e. If two objects are in composition, the composed object will not exist without the other.
- Related Articles
- What is composition in C#?
- What is Chemical Composition?
- inheritance(is-a) v/s composition (has-a) relationship in Java
- What is composition in HTML5 Canvas?
- What is the composition of firecrackers?
- What is the composition of air?
- Association, Composition and Aggregation in Java\n
- Difference between inheritance and composition in Java
- What is the composition of liquefied petroleum gas (LPG)?
- Composition in Golang
- What are the difference between Composition and Aggregation in C#?
- What is Is-a relationship in Java?
- Composition attribute in HTML5 Canvas?
- Composition vs Aggregation in C#
- Inheritance vs Composition in C#

Advertisements