A community for students.

Here's the question you clicked on:

55 members online
  • 0 replying
  • 0 viewing


  • one year ago

In Java, when to use import java.util.*; versus import java.Scanner;

  • This Question is Closed
  1. e.mccormick
    • one year ago
    Best Response
    You've already chosen the best response.
    Medals 1

    When you finish a java project it should onlu include what is needed if you do the .*, however, you won't know what is actually used and included. By doing spesific includes you have a better idea of what is going into a pogram wheich can result in knowing what can be done to improve it. Also, if you add something later you will have an idea of what is already inclided so ready to use, thus preventing the addition of similar libraries that would increase size for little or no feature. With that in mind, when do you think it would be better to use the generic * rather than specific things?

  2. Not the answer you are looking for?
    Search for more explanations.

    • Attachments:

Ask your own question

Sign Up
Find more explanations on OpenStudy
Privacy Policy

Your question is ready. Sign up for free to start getting answers.

spraguer (Moderator)
5 → View Detailed Profile

is replying to Can someone tell me what button the professor is hitting...


  • Teamwork 19 Teammate
  • Problem Solving 19 Hero
  • You have blocked this person.
  • ✔ You're a fan Checking fan status...

Thanks for being so helpful in mathematics. If you are getting quality help, make sure you spread the word about OpenStudy.

This is the testimonial you wrote.
You haven't written a testimonial for Owlfred.