import com.my.awesome.*

Speaking about packages, I find that seeing the name of what was imported from where is important.
Consider this very simplistic and made-up example code:


package com.my.awesome.project;

import java.io.*;
import org.apache.commons.fileupload.*;

public class Main {
    public static void main() {
            File file = new File("/usr/local/bin/foo/bar");
            FileItemFactory factory = new DiskFileItemFactory();  
    }
}
        

Can a newbie guess which import comes from?
What if there were 10 imports from 10 different libs and more code?

I hear you saying: but we have IDE’s. Sure, but didn’t you ever had this problem where a couple of imports were not working? Reference was not resolved due to some kind of refactoring. I find that this is an unnecessary problem out of thin air. Explicit or package named import would work just fine.