ICSE Class 9 Computer Applications
Question 2 of 13
Input in Java — Question 2
Back to all questions 2
Question Question 2
Explain the use of import statement with an example.
import statement is used to import built-in and user-defined packages and classes into our Java program. For example, we can import all the classes present in the java.util package into our program using the below statement:
import java.util.*;