---
title: "Discussion on \"Object Oriented Programming in Java- Part 2\" | Hashnode"
description: "Discussion on \"Object Oriented Programming in Java- Part 2\". Q: What are packages and why do we need them ?A: Provides organization and structure to code. You can have classes with same name in different and avoid collision. Lastly access control and modularity.\nQ: How to export import and create a package ?A:..."
url: "https://hashnode.com/posts/object-oriented-programming-in-java-part-2/653d3e73aa64ae78750acfee"
---

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

Discussion

# [Object Oriented Programming in Java- Part 2](https://mayank1728.hashnode.dev/object-oriented-programming-in-java-part-2?utm_source=hashnode&utm_medium=feed)

Q: What are packages and why do we need them ?A: Provides organization and structure to code. You can have classes with same name in different and avoid collision. Lastly access control and modularity. Q: How to export import and create a package ?A:...

Oct 28, 2023 · 4 min read · mayank1728.hashnode.dev  
Read the article

-   [#java](https://hashnode.com/tag/java)
-   [#programming-blogs](https://hashnode.com/tag/programming-blogs)
-   [#programming-tips](https://hashnode.com/tag/programming-tips)
-   [#opensource](https://hashnode.com/tag/opensource)
-   [#object-oriented-programming](https://hashnode.com/tag/object-oriented-programming)

## Written by

[Mayank Mudgal](https://hashnode.com/@Mayank1728)

@Mayank1728

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

FrontEndDeveloper and reader!

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
