About Question enthuware.ocpjp.i.v11.2.3083 :
Posted: Thu Jul 09, 2020 6:41 pm
So, in conclusion, is it because
1. the class Logger already imported java.util.ArrayList that
2. calling ArrayList methods on a Logger instance does not need TestClass to import java.util.ArrayList?
3. Unless TestClass creates a new instance of ArrayList?, such as
1. the class Logger already imported java.util.ArrayList that
2. calling ArrayList methods on a Logger instance does not need TestClass to import java.util.ArrayList?
3. Unless TestClass creates a new instance of ArrayList?, such as
Code: Select all
ArrayList al = new ArrayList();