Home / Questions / (i) Name the package that contains the Scanner class.(ii) Which unit of the class gets called when the object of the class is created?
Explanatory Question

(i) Name the package that contains the Scanner class.
(ii) Which unit of the class gets called when the object of the class is created?

👁 105 Views
📘 Detailed Answer
🕒 Easy to Read
Read the answer carefully and go through the related questions on the right side to improve your understanding of this topic.

Answer with Explanation

(i) The package that contains the Scanner class is java.util.
(ii) The constructor is called automatically when the object of the class is created.