✏️ 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
💡

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.