What is the difference between implicit import statements and explicit import statements?

1 answer

Answer

1220441

2026-04-28 23:50

+ Follow

Java
Java

In some cases, many explicit import statements equal only one implicit import statement. Would you rather type this:

import Java.util.ArrayList;

import Java.util.List;

import Java.util.Collection;

import Java.util.LinkedList;

import Java.util.Queue;

import Java.util.HashMap;

import Java.util.Map;

import Java.util.PriorityQueue;

than this:

import Java.util.*;

Well, the first group of statements is functionally equivalent to the first one.

ReportLike(0ShareFavorite

Copyright © 2026 eLLeNow.com All Rights Reserved.