About Question enthuware.ocpjp.v8.2.1309 : probably a bug
Moderators: Site Manager, fjwalraven
-
- Posts: 11
- Joined: Wed Dec 07, 2016 3:21 pm
- Contact:
About Question enthuware.ocpjp.v8.2.1309 : probably a bug
Hi, while I was taking the second standard test I independently came up with the same solution as described in the following, marked as resolved, bug/error: viewtopic.php?f=38&t=4055
The software marked my answer as incorrect, but according to the aforementioned topic (and the compiler) it probably should be marked as correct. I also reproduced this problem by creating and taking a custom test containing only this one question. Maybe I didn't use the drag'n'drop tool correctly, or maybe there is a regression bug in this question.
The software marked my answer as incorrect, but according to the aforementioned topic (and the compiler) it probably should be marked as correct. I also reproduced this problem by creating and taking a custom test containing only this one question. Maybe I didn't use the drag'n'drop tool correctly, or maybe there is a regression bug in this question.
-
- Posts: 25
- Joined: Sat Jun 03, 2017 4:56 pm
- Contact:
Re: About Question enthuware.ocpjp.v8.2.1309 : probably a bu
Maybe a mistake in the explanation:
But Collection is an interface.3. You cannot instantiate a Collection because it is an abstract class
-
- Site Admin
- Posts: 10170
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.ocpjp.v8.2.1309 : probably a bu
Yes, I see the problem. The issue is that it is opening up too many possibilities of correct options. So I have reduced one yellow target to avoid the solution that doesn't using E. See attachment.jankur wrote:Hi, while I was taking the second standard test I independently came up with the same solution as described in the following, marked as resolved, bug/error: viewtopic.php?f=38&t=4055
The software marked my answer as incorrect, but according to the aforementioned topic (and the compiler) it probably should be marked as correct. I also reproduced this problem by creating and taking a custom test containing only this one question. Maybe I didn't use the drag'n'drop tool correctly, or maybe there is a regression bug in this question.
I hope this fixes it for good.
-Paul.
If you like our products and services, please help us by posting your review here.
-
- Site Admin
- Posts: 10170
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.ocpjp.v8.2.1309 : probably a bu
You are right. Fixed.thodoris.bais wrote:Maybe a mistake in the explanation:
But Collection is an interface.3. You cannot instantiate a Collection because it is an abstract class
thank you for your feedback!
If you like our products and services, please help us by posting your review here.
-
- Posts: 25
- Joined: Sat Jun 03, 2017 4:56 pm
- Contact:
Re: About Question enthuware.ocpjp.v8.2.1309 : probably a bu
No worries, Paul, I'm trying to prepare myself for this complex exam.
On topic, watching again the question itself for the second time, I am not sure I understand why the method signature has to be defined like that (or, to phrase it better, why the following is allowed by the compiler):
I mean, to my understanding, the above is only clear like that:
So, the question is: what is so special about the
Am I missing a language specification?
On topic, watching again the question itself for the second time, I am not sure I understand why the method signature has to be defined like that (or, to phrase it better, why the following is allowed by the compiler):
public < E extends CharSequence > Collection < E > getWordsStartingWith( Collection< E > input , char ch ) { }
I mean, to my understanding, the above is only clear like that:
public Collection < E extends CharSequence > getWordsStartingWith( Collection< E > input , char ch ) { }
So, the question is: what is so special about the
declaration between the access modifier and the return type of the method?< E extends CharSequence >
Am I missing a language specification?
-
- Site Admin
- Posts: 10170
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.ocpjp.v8.2.1309 : probably a bu
Yes, that is the syntax. Before you can use E in the method, you need to specify two things - 1. That you are going to use E as a the generic type . and 2. That E extends CharSequence.
That is why <E extends CharSequence> is needed before the return type.
That is why <E extends CharSequence> is needed before the return type.
If you like our products and services, please help us by posting your review here.
-
- Posts: 12
- Joined: Tue Mar 06, 2018 9:54 am
- Contact:
Re: About Question enthuware.ocpjp.v8.2.1309 : probably a bug
I'm unable to grab hold of the E in the drag & drop question. The other terms work fine.
I find it odd no one else reported this, so I'm guessing it's something on my end, but I can't figure out what I'm doing wrong. The hover message does appear when I hover over the E, but I can't pick it up. I've tried dragging from slightly above/below or to the side of the E, but nothing seems to be working.
This with Enthuware Test Studio v3.93, build: 20180516 on Windows 10, Java 10.0.2.
EDIT: When I add other terms to my solution and then click the E, the solution is reset and all fields are blank again. This is very odd...
I find it odd no one else reported this, so I'm guessing it's something on my end, but I can't figure out what I'm doing wrong. The hover message does appear when I hover over the E, but I can't pick it up. I've tried dragging from slightly above/below or to the side of the E, but nothing seems to be working.
This with Enthuware Test Studio v3.93, build: 20180516 on Windows 10, Java 10.0.2.
EDIT: When I add other terms to my solution and then click the E, the solution is reset and all fields are blank again. This is very odd...
-
- Site Admin
- Posts: 10170
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.ocpjp.v8.2.1309 : probably a bug
Hi Rick,
Could you please replace your question bank file with the latest one from http://enthuware.com/downloads/jqplusv8.ets and see if that fixes the problem?
thank you,
Paul.
Could you please replace your question bank file with the latest one from http://enthuware.com/downloads/jqplusv8.ets and see if that fixes the problem?
thank you,
Paul.
If you like our products and services, please help us by posting your review here.
-
- Posts: 12
- Joined: Tue Mar 06, 2018 9:54 am
- Contact:
Re: About Question enthuware.ocpjp.v8.2.1309 : probably a bug
That fixed it, thank you!
Who is online
Users browsing this forum: No registered users and 2 guests