What are the difference between folder, package, directory.


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 com.xyz then subfolder within that as com.xyz.abc)within java source directory and create java classes(say test1.java, test2.java) within that IDE,
 IDE does not recognize those Java files.

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

What are the difference between folder, package, directory.
Any ideas, suggestions, resources, links highly appreciated.
Who is Participating?
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
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
Sathish David Kumar NArchitectCommented:
Sathish David Kumar NArchitectCommented:
Packages are nothing more than the way we organize files into different directories according to their functionality
gudii9Author Commented:
thank you very much
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.