About Question enthuware.ocpjp.v7.2.1507 :

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

Moderator: admin

Post Reply
tn1408
Posts: 28
Joined: Wed Dec 04, 2013 7:57 pm
Contact:

About Question enthuware.ocpjp.v7.2.1507 :

Post by tn1408 »

Hello,
How do we assume that TC is a top level class?

Thanks,

Tony,

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

Re: About Question enthuware.ocpjp.v7.2.1507 :

Post by admin »

Because the code listing makes it clear that it is.
If you like our products and services, please help us by posting your review here.

shamran99
Posts: 15
Joined: Wed May 10, 2017 2:49 am
Contact:

Re: About Question enthuware.ocpjp.v7.2.1507 :

Post by shamran99 »

Hi,

Wanted to know that what could be the reason for making collection classes non final. I know it is to allow extending that class. But are there any specific reason for that?

Regards,
Shamran.

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

Re: About Question enthuware.ocpjp.v7.2.1507 :

Post by admin »

The reason is same as for making any other class non-final. So that one could extend them and customize the functionality if they want to.
If you like our products and services, please help us by posting your review here.

Post Reply

Who is online

Users browsing this forum: No registered users and 47 guests