Meaningless Drivel is fun!*
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Enthuware weird question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Enthuware weird question" Watch "Enthuware weird question" New topic
Author

Enthuware weird question

nico dotti
Ranch Hand

Joined: Oct 09, 2007
Posts: 124
I had a D&D question
com.enthuware.ets.scjp.v5.2.779

I answered List <String> and it wanted List<String> (without the space!). Mine is valid (I think) as the space shouldn't matter, right? Is the real exam going to have traps like this where I could give a correct answer that's considered wrong?

[ December 09, 2007: Message edited by: nico dotti ]
[ December 09, 2007: Message edited by: nico dotti ]
Paul Anilprem
Enthuware Software Support
Ranch Hand

Joined: Sep 23, 2000
Posts: 3253
    
    2
Hi Nico,
You are absolutely correct that List <String> is also valid. We will update the question to accept this as a correct answer as well.
However, List <String> is also valid and List
<String> (i.e. a new line in the middle) is also valid. It is not possible to accept all of them because there is no compilation going on here.

I am guessing that that the actual exam s/w also does not employ any compiler to see if an answer is correct or not. So my suggestion is to use a standard way of writing code and to not take chances by writing legal but uncommon code.

HTH,
Paul.


Enthuware - Best Mock Exams and Questions for Oracle/Sun Java Certifications
Quality Guaranteed - Pass or Full Refund!
nico dotti
Ranch Hand

Joined: Oct 09, 2007
Posts: 124
So is List<String> preferred over List <String> as 'standard'? I have my test in a few days and I would just assume make life easier than harder so to speak. LMK and thanks for the program it's been quite helpful.
Paul Anilprem
Enthuware Software Support
Ranch Hand

Joined: Sep 23, 2000
Posts: 3253
    
    2
Originally posted by nico dotti:
So is List<String> preferred over List <String> as 'standard'? I have my test in a few days and I would just assume make life easier than harder so to speak. LMK and thanks for the program it's been quite helpful.


I would not say that List<String> is "the" standard but I would certainly prefer it over any other convention, at least from the exam perspective. Also, as I mentioned before I do think that ListSPACE<String> should be accepted and this will be updated soon.

Thanks a lot for the feedback and appreciation
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Enthuware weird question
 
Similar Threads
Is System.out.println method calling toString() by default? A strange behavior.
Boolean == boolean
regex and \d
wildcards in generics
finalize method behaviour