B
B
bandgeloun2017-03-11 17:59:51
Java
bandgeloun, 2017-03-11 17:59:51

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

2 answer(s)
A
Axian Ltd., 2017-03-11
@bandgeloun

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.

R
Rou1997, 2017-03-11
@Rou1997

It is better to point out, for some reason they generally pay a lot of attention to this, namely, importthey 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 question

Ask a Question

731 491 924 answers to any question