• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Sybex OCP 17 Practice Tests chapter 5

 
Sheriff
Posts: 3063
12
Mac IntelliJ IDE Python VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I just noticed a couple of nits here:

Question 15: shows a run command as java Copier.java, but it should just be java Copier.

Question 52: says null can't be inserted into a TreeSet, which is true is in the default case, but not universally true.  If you give the TreeSet a Comparator that can handle nulls, then it's fine to put a null into it.

 
author & internet detective
Posts: 41860
908
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Greg Charles wrote:Question 15: shows a run command as java Copier.java, but it should just be java Copier.


Either is right. Single file source code execution allows you to pass the .java filename to java if you don't compile.

Greg Charles wrote:Question 52: says null can't be inserted into a TreeSet, which is true is in the default case, but not universally true.  


Yuck, you are right. I've added this to our list of things to decide if we want to change next time.
 
Greg Charles
Sheriff
Posts: 3063
12
Mac IntelliJ IDE Python VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Jeanne Boyarsky wrote:Either is right. Single file source code execution allows you to pass the .java filename to java if you don't compile.



Oh, shoot. I learned that by reading your study guide, and then I forgot it again. I hope I'll remember it now! It's always going to look like a typo to me though.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic