the usage of close() method(Java Beginner)
<p>What would really happen if I don't use x.close() if I want to close a Scanner object or any other object.What is the usage of close() method.Please give example of what happens if we don't use close method.</p>