Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

155
Vistas
Redundant import of Packages in a Java project - Is there any performance impact?

In my java project, during the process of refactoring my code, I see a lot of redundant packages. Eclipse marks them in light yellow as shown in the image below

enter image description here

What is the suggested practice of handling hese ? Do these redundant packages have any performance impact and if yes, would be interested in knowing how.

over 4 years ago · Santiago Trujillo
1 Respuestas
Responde la pregunta

0

In eclipse there's a handy shortcut Ctrl+Shift+o which will organize your imports and remove unused.

Unused imports have a trivial impact on the compiler. It's not a big deal however it's distracting and best practice is to remove them.

Also it's prefered to use imports like this

import java.util.Map;
import java.util.List;

over this

import java.util.*;

using star will import all packages from util which you don't need in most scenarios...

over 4 years ago · Santiago Trujillo Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda