Let's say I have a class which uses the following from the package java.io
: FileOutputStream
, OutputStream
, FileInputStream
, File
, and IOException
. Should I use a generic import, import java.io.*
, or should I import each class individually.
What is the difference between a generic import and multiple imports?