1

Do the import statements acquire any space on the heap or JVM ? Lets say I have a class which where many java packages are imported, which are not used. So when this class is instantiated, will these unwanted import of packages create any overhead on heap or stack or JVM ?

Mandar Kale
  • 337
  • 2
  • 13
  • check this out: http://stackoverflow.com/questions/7128348/performance-difference-between-a-wild-card-import-and-the-required-class-import – nihirus Oct 05 '16 at 07:12

1 Answers1

4

No, imports are just used by the compiler to resolve class names.

Thomas Stets
  • 3,015
  • 4
  • 17
  • 29