• 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:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Ron McLeod
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

ch 8, review question 2 - OCA 8 - Boyarsky & Selikoff

 
Ranch Hand
Posts: 90
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi everyone,


Like said in one of my previous thread (https://coderanch.com/t/661771/java-programmer-OCPJP/certification/OCPJP-Console-readPassword#3072959), I have some problem with the review question 2 for chapter 8 on page 445. It says in the answer

Because Java puts all String values in a reusable pool


which seems to be correct according to the answers.

Is it really correct to say that all Strings are put in the reusable pool or does that mean something else? I'm a bit confused...

Thanks for your help.


Kind regards,
Guillaume
 
author & internet detective
Posts: 42135
937
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
While it is more complicated than this, from the exam's point of view - all Strings are potentially reusable and insecure.
 
Guillaume Bailly
Ranch Hand
Posts: 90
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Ok, just to be sure we're on the same wavelength.

Regards,
Guillaume
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic