What is the point of closing a class object? | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
+ 2

What is the point of closing a class object?

If java has garbage collector, why do so many codes close the scanner class object after using it? :( ~bear with a noob here.

1st Apr 2017, 6:53 AM
Puspal Ghosh
Puspal Ghosh - avatar
2 ответов
+ 4
thanks :)
1st Apr 2017, 8:59 AM
Puspal Ghosh
Puspal Ghosh - avatar