answersLogoWhite

0


Best Answer

The "import" statement in Java imports names from some other package into the current context. So, if there was a class called com.otherwise.jurtle.SomeClass, you would have to refer to it by the full name, unless you imported it.

The import can be done specifically for one class:

import com.otherwise.jurtle.SomeClass;

or for everything in a package:

import com.otherwise.jurtle.*;

In Java 5 and up, you can also import all the static functions from a class:

import static com.otherwise.jurtle.SomeClass.*;

The "com.otherwise.jurtle" part is called the package identifier. The general practice is for a company to reverse its domain name for this. So jurtle.otherwise.com becomes com.otherwise.jurtle.

User Avatar

Wiki User

16y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What does this mean import com.otherwise.jurtle.?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions