Loading...
What is the use of import statement in Java?
Primitive data types are built in data types which are a part of the wrapper classes. These wrapper classes are encapsulated in the java.lang package. Non primitive datatypes like Scanner class are a part of the utility package for which an object needs to be created.
© 2026 PadhAiPro. This question is provided for educational purposes.