About Question enthuware.ocajp.i.v8.2.905 :

Help and support on OCA OCP Java Programmer Certification Questions
1Z0-808, 1Z0-809, 1Z0-815, 1Z0-816, 1Z0-817

Moderator: admin

Post Reply
TamasBuri
Posts: 6
Joined: Thu Sep 26, 2019 3:19 am
Contact:

About Question enthuware.ocajp.i.v8.2.905 :

Post by TamasBuri »

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

admin
Site Admin
Posts: 10043
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

Re: About Question enthuware.ocajp.i.v8.2.905 :

Post by admin »

Yes, List is an interface but many times the term class is used to refer to any type including class, interface, or even enum to explain a point in general. It is imprecise but still commonly used.
If you like our products and services, please help us by posting your review here.

TamasBuri
Posts: 6
Joined: Thu Sep 26, 2019 3:19 am
Contact:

Re: About Question enthuware.ocajp.i.v8.2.905 :

Post by TamasBuri »

Thank you for your answer. :)

Tamás

Post Reply

Who is online

Users browsing this forum: No registered users and 45 guests