Advertisements
Advertisements
Question
What is the use of the keyword 'import' in Java programming?
Answer in Brief
Solution
A user-defined class is a class developed by the user. However, several packages (groups of classes) are available in the Java system (JDK). With the 'import' keyword, you can import and utilise these packages in any program. Java's built-in classes and functions offer valuable help for programmers, making it a strong language.
shaalaa.com
Is there an error in this question or solution?
Chapter 1.06: Input in Java - EXERCISES [Page 66]