Java String import

I have one doubt. When we use ArrayList or HashMap in Java, we have to import java.util.ArrayList or java.util.HashMap. But when we use String, it doesn’t require the import statement. Can anyone clarify, why?

Leave a Comment

tech