ICSE Class 10 Computer Applications
Question 11 of 32
Input in Java — Question 11
Back to all questions 11
Question Question 11
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.*;