About Question enthuware.ocpjp.v7.2.1267 :

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

Moderator: admin

Post Reply
leorbarbosa
Posts: 17
Joined: Wed Nov 26, 2014 1:59 pm
Contact:

About Question enthuware.ocpjp.v7.2.1267 :

Post by leorbarbosa »

Why will not compile if 'String' is subclass of 'Object' ?

String str = list2.get(0);

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

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

Post by admin »

You might want to read this: viewtopic.php?f=2&t=473
That should answer your question.

Post Reply

Who is online

Users browsing this forum: No registered users and 17 guests