What are the difference between folder, package, directory.

Posted on 2010-01-04
Last Modified: 2013-11-23

I would like to know "What are the dfifferences between folder, package, directory" used in RAD, Eclipse etc IDEs.
When do we use which one and why?.

If I create a folder ( say com then subfolder in it as then subfolder within that as java source directory and create java classes(say, within that IDE,
 IDE does not recognize those Java files.

Whereas  If i create as package like etc and create java files then only IDE recognizes.

What are the difference between folder, package, directory.
Any ideas, suggestions, resources, links highly appreciated.
Question by:gudii9
    LVL 8

    Assisted Solution

    they are the same. no difference actually. but if you create a folder/directory under a "source folder" , usually is "src" then it is known as package. this is conceptually  but in real the packages are the same folder. if you create a folder outside of a source folder it is called folder or directory. Hope I could help you
    LVL 20

    Expert Comment

    by:Sathish David Kumar N
    LVL 20

    Assisted Solution

    by:Sathish David Kumar N
    Packages are nothing more than the way we organize files into different directories according to their functionality

    Accepted Solution

    package is a way to make java class unique to your company (it is especially usefull if you are creating reusable code by other companies).
    Folder and directory are the same
    LVL 7

    Author Closing Comment

    thank you very much

    Featured Post

    What Is Threat Intelligence?

    Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

    Join & Write a Comment

    Suggested Solutions

    Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
    Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
    Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…
    This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.

    746 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    15 Experts available now in Live!

    Get 1:1 Help Now