-1

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?

Ian S.
  • 1,831
  • 9
  • 17

1 Answers1

0

There is no difference, but if there are two classes with same names in different packages will give a compile error

Diego
  • 304
  • 1
  • 8