What is "Import" used for ?

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.
Label / Company      Label / Company / Text


Interview Questions and Answers

 Q1. What is "Import" used for ?Core Java
Ans. Enables the programmer to abbreviate the names of classes defined in a package.

  Sample Code for import

 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve     java   import   java keyword

Related Questions

  What are concepts introduced with Java 5 ?
  Can I import same package/class twice? Will the JVM load the package twice at runtime?
  What is a Static import ?
  Which of the following syntax is correct ?import static java.lang.System.*;or static import java.lang.System.*;
  Do we need to import java.lang package ?
 Does importing a package imports all its sub packages too ?
 Is it a good practice to use Asterick(*) in import statement to load multiple packages with single import statement ?
 Why is it important to close files and streams ?
 Difference between import and include directive in jsp

Help us and Others Improve. Please let us know the questions asked in any of your previous interview.

Any input from you will be highly appreciated and It will unlock the application for 10 more requests.

Company Name:
Questions Asked: