Sometimes there arises a need when a class that needs to be accessed from within the same package then default modifier is used.
For example : a third party library/jar which has a class used by...
Type: Posts; User: techiepro
Sometimes there arises a need when a class that needs to be accessed from within the same package then default modifier is used.
For example : a third party library/jar which has a class used by...
Yes we need to import. Only when its imported then comes the part whether it can be accessible depending on the visibility(private, public, protected)