Answer the question
In order to leave comments, you need to log in
USE. Are imports necessary when writing in Java?
I want to write the last assignment in the exam in JAVA, but I wonder if it is necessary to indicate all the imports that are made, or is it possible without them?
Answer the question
In order to leave comments, you need to log in
Well, you cook soup, do you need to put all the seasonings to make it work? The Java language requires an explicit indication of where the firewood comes from, you can not use import, but write the full name of classes and objects from them. And EG has nothing to do with it.
It is better to point out, for some reason they generally pay a lot of attention to this, namely, import
they are perhaps even right. It's even better to write in Pascal, it's the best for this task, write the code that will most likely compile in it, and have the least amount of information to remember.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question