About Question enthuware.ocajp.i.v8.2.905 :
Posted: Thu Sep 26, 2019 3:29 am
Hi,
I think there is mistake in the explanation:
"Since you are doing new ArrayList, you are creating an object of class ArrayList. You are assigning this object to variable "students", which is declared of class List. Reference type means the declared type of the variable."
You wrote List is a class but I think it is an interface.
Am I right?
Tamás
I think there is mistake in the explanation:
"Since you are doing new ArrayList, you are creating an object of class ArrayList. You are assigning this object to variable "students", which is declared of class List. Reference type means the declared type of the variable."
You wrote List is a class but I think it is an interface.
Am I right?
Tamás