(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?
Long Answer
Views 94
Answer:
(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.
Related Articles:
This section is dedicated exclusively to Questions & Answers. For an in-depth exploration of Java Programming Language, click the links and dive deeper into this subject.
Join Our telegram group to ask Questions
Click below button to join our groups.