What is the import for List in Java?

An import statement tells Java which class you mean when you use a short name (like List ) . It tells Java where to find the definition of that class. You can import just the classes you need from a package as shown below. Just provide an import statement for each class that you want to use.

Read more