0
Why you have to import things in Java if they seem too already be there?
3 Respostas
0
For example if there is a class Vehicle in package1 of your 1st Java project and you want to extend that class to create a class Car which is in some package of your 2nd Java project, then in such cases you need an import statement. This is just one of the examples.
0
Only classes found in other packages are imported.
0
You can import interface as well.