+ 6
What is the purpose of using package in java?
2 Answers
+ 2
for organising purposes.
like, how we put all our music in the music folder, videos in another, etc.
similarly, we put classes with similar tasks in one package and the rest in others.
+ 1
its useful if you have jar file. then you can import it, without package name, it will not work as expected