+ 3

why we use * in java ?

ex-import java.io.*; like this why we use *

21st May 2017, 2:39 AM
Pooja Mahana
Pooja Mahana - avatar
3 Respuestas
+ 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
21st May 2017, 3:00 AM
Pixie
Pixie - avatar
+ 3
thnks a lot
21st May 2017, 3:03 AM
Pooja Mahana
Pooja Mahana - avatar
+ 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.
21st May 2017, 4:28 AM
Aditya Narayan Mishra
Aditya  Narayan Mishra - avatar