- 1

What is package in java?

31st Aug 2016, 2:28 PM
Naina Pardeshi
3 Answers
+ 3
You can think of a package as folders you'd have on your computer to organize your files depending on what type of file it is. So basically we use packages to organize classes of similar types. Moreover there is lots of advantages with packages but ill just list a few: *helps to avoid class name conflicts *easier to find classes For more information regarding this, you may like to check tutorialspoint or stackoverflow
31st Aug 2016, 3:33 PM
Ousmane Diaw
0
I see packages as folder organisation. In my pictures folder I have a birthday, Holiday, House folder. Each one contains images of those types. Here is a good explanation of packages: https://docs.oracle.com/javase/tutorial/java/concepts/package.html
31st Aug 2016, 8:13 PM
Chander
Chander - avatar
- 2
package is basically a collection of object of different kind
31st Aug 2016, 5:42 PM
Aniket Goswami
Aniket Goswami - avatar