About Question enthuware.ocpjp.v7.2.1232 :

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

Moderator: admin

Post Reply
fariz.siracli
Posts: 22
Joined: Mon Jul 06, 2015 11:45 am
Contact:

About Question enthuware.ocpjp.v7.2.1232 :

Post by fariz.siracli »

hello. what 's inferencing ?

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

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

Post by admin »

Here, type inferencing means that even though you are not specifying the types on one side, the compiler is still able to infer i.e. determine the type by looking at the other side of the assignment operation.

Please check this out for details: http://docs.oracle.com/javase/7/docs/te ... ation.html
If you like our products and services, please help us by posting your review here.

fariz.siracli
Posts: 22
Joined: Mon Jul 06, 2015 11:45 am
Contact:

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

Post by fariz.siracli »

ok. i understood what this is. But i could not understand the entire question. there is no explanation yet.
Explain please whole question.

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

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

Post by admin »

Can you tell which part is not clear? The diamond operator makes the compiler inference the type of the object. The explanation to the second option explains this. The question is basically just asking you to rewrite the line of code using the diamond operator.
If you like our products and services, please help us by posting your review here.

fariz.siracli
Posts: 22
Joined: Mon Jul 06, 2015 11:45 am
Contact:

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

Post by fariz.siracli »

Ooh really? Understood. Thank you.

Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 4 guests