Help coderanch get a
new server
by contributing to the fundraiser
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

Enthuware weird question

 
Ranch Hand
Posts: 124
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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 ]
 
Enthuware Software Support
Posts: 4850
52
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
nico dotti
Ranch Hand
Posts: 124
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 4850
52
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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
reply
    Bookmark Topic Watch Topic
  • New Topic