Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

162
Views
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 answers
Answer question

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 Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!