---
title: "Discussion on \"Aggregation in Java\" | Hashnode"
description: "Discussion on \"Aggregation in Java\". If a class have an entity reference, it is known as Aggregation. Aggregation represents HAS-A relationship.\nAggregation in Java is a mechanism of using an object of one class as a member variable of another class. It is a way to achieve a \"has-a\" rel..."
url: "https://hashnode.com/posts/aggregation-in-java/64020d63801c80e795cc70a1"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Aggregation in Java](https://akashpawal.hashnode.dev/aggregation-in-java?utm_source=hashnode&utm_medium=feed)

If a class have an entity reference, it is known as Aggregation. Aggregation represents HAS-A relationship. Aggregation in Java is a mechanism of using an object of one class as a member variable of another class. It is a way to achieve a "has-a" rel...

Mar 3, 2023 · 2 min read · akashpawal.hashnode.dev  
Read the article

-   [#wemakedevs](https://hashnode.com/tag/wemakedevs)
-   [#programming](https://hashnode.com/tag/programming)
-   [#java](https://hashnode.com/tag/java)
-   [#programming-blogs](https://hashnode.com/tag/programming-blogs)
-   [#beginners](https://hashnode.com/tag/beginners)

## Written by

[Blogs in Shorts.](https://hashnode.com/@Vicky254)

@Vicky254 · Mumbai

  
[View profile](https://hashnode.com/@Vicky254)

Self - Motivated.

Learner, coder, Tech head, Runner &amp; part time Administrator.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
