+ 3
why we use * in java ?
ex-import java.io.*; like this why we use *
3 Respostas
+ 11
To import everything from Java package
eg.
import java.util.*; //imports everything in java.util
import java.util.Scanner;//imports only Scanner from java.util
+ 3
thnks a lot
+ 1
to define a class we use sometimes we need to import that java file for execution before starting the programming. If we want to create a program to take our input and show the output we use "import java.io.*;" which helps the programming for input and output value of the program.* is used to import all the files from the package.