what is the difference between import Java. util.* and import java.util.scanner
Share
what is the difference between import Java. util.* and import java.util.scanner
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
If we write import Java. util.* this will include and execute scanner class as well as the rest of the class but if we use import java.util.scanner this will include and execute only the scanner class, so it is better to write import Java. util.* in any of java program.
please mark as brainliest