Search Interview Questions
| More than 3000 questions in repository.|
There are more than 900 unanswered questions.
Click here and help us by providing the answer.
Have a video suggestion.
Click Correct / Improve and please let us know.
|Interview Questions and Answers|
|Ans. It means import all the classes and interfaces within java.util package and make them available to use within the current class or interface. This is shorthand wild card annotation for importing all classes within a particular package. This won't import the classes within the sub packages of java.util.|
|Help us improve. Please let us know the company, where you were asked this question :|
|Like Discuss Correct / Improve  java import   import statement|
|Is it a good practice to use Asterick(*) in import statement to load multiple packages with single import statement ?|
| What is the problem we could face if we be very liberal with importing classes even if we are not using them ? For example |
|Which java package is loaded by default and hence doesn't require an explicit import statement ?|
|Why do we need to specify import statement ? Don't you think Java could have been designed in such a way to automatically import everything that's in the class path ?|