About Question enthuware.ocpjp.v7.2.1232 :
Moderator: admin
-
- Posts: 22
- Joined: Mon Jul 06, 2015 11:45 am
- Contact:
About Question enthuware.ocpjp.v7.2.1232 :
hello. what 's inferencing ?
-
- Site Admin
- Posts: 10078
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.ocpjp.v7.2.1232 :
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
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.
-
- Posts: 22
- Joined: Mon Jul 06, 2015 11:45 am
- Contact:
Re: About Question enthuware.ocpjp.v7.2.1232 :
ok. i understood what this is. But i could not understand the entire question. there is no explanation yet.
Explain please whole question.
Explain please whole question.
-
- Site Admin
- Posts: 10078
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.ocpjp.v7.2.1232 :
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.
-
- Posts: 22
- Joined: Mon Jul 06, 2015 11:45 am
- Contact:
Re: About Question enthuware.ocpjp.v7.2.1232 :
Ooh really? Understood. Thank you.
Who is online
Users browsing this forum: No registered users and 30 guests