Win a copy of Node.js Design Patterns: Design and implement production-grade Node.js applications using proven patterns and techniques this week in the Server-Side JavaScript and NodeJS forum!

Jeanne Boyarsky

author & internet detective
+ Follow
since May 26, 2003
Jeanne likes ...
Eclipse IDE VI Editor Java
New York
Cows and Likes
Total received
In last 30 days
Total given
Total received
Received in last 30 days
Total given
Given in last 30 days
Forums and Threads
Scavenger Hunt
expand Rancher Scavenger Hunt Green check
expand Ranch Hand Scavenger Hunt Green check
expand Greenhorn Scavenger Hunt Green check

Recent posts by Jeanne Boyarsky

Scheduled promotions:

Note: We can run more than one promo in a given week, so check for updates.

Starting DateCoverBookAuthor(s)PublisherCodeRanch Forum
October 26Node.js Design Patterns   Mario Casciaro & Luciano MamminoPacktNode.js
November 2  Available
November 9Practical Cloud-Native Java Development with MicroProfile  (Tentative)Emily Jiang, Andrew McCright, David Chan & Alasdair NottinghamPacktMicroProfile
November 16  Available
November 23  No Promo - US Holiday week
November 30  Available
December 7Terraform in Action  (Tentative)Scott WinklerManningCloud
December 14  Available
December 21  No Promo - Holiday week
December 28  No Promo - Holiday week
January 4  Available
January 11  Available
January 18  Available
January 24  Available
January 31  Available

Go back to the main BookPromotions page.
14 hours ago
For the rest of this thread, there's an aspect that we need to present a simplified view of the world. This chapter is for the purpose of passing the exam, not going into every last detail of modules.

Jesse Silverman wrote:Another errata for the same chapter, section Splitting a Big Project Into Modules, figure 6.9 does not correlate to the textual description of it:

Scott and Jeanne wrote:Figure 6.9 shows the new modules without any cyclic dependencies.  Notice the new module  We created a new package to put in that module.  This allows the developers to put common code in there and break the dependency.  No more cyclic dependencies!

Minor extra for the errata or re-write, there are two new packages added in the new module that was added in the figure and mentioned in the errata:

rather than one.

I agree there are two packages. Good catch.
Note that the String replace method makes it easy to get rid of the commas.
2 weeks ago
Fixed. Thanks for noticing; I gave you a cow. (I'm less careful with the errata than the book)
I replied to the module one in that thread. As for this one, I've added it to the list to look at
Well yuck. I'm leaving it off the errata list because H is the best answer. (luckily we didn't put "none of the above" on this question!) I made a note though.
2 weeks ago
Confirmed errata and credited Will on the errata page. Thanks Will!

Brad Phillips wrote:The java command is being used though the file is specified without the .java extension. I guess my question is this: are we to assume that where "java" is used that the code has already been compiled into bytecode using javac? Or is this a typo within the book and the command should instead be "java Duck Goose"?

It's not a typo. It is context dependent. In this case, we are assuming the code has been compiled already. However, as you noted java would also be correct because that would assume the code hadn't been compiled.

Note that javac/java are not on the 819 exam. We cover them because you need to know how to run code in order to have any chance of practice and passing the exam . Also, there are a few topics in chapter 1 that were on the 815 but removed on the 819.

Brad Phillips wrote:Another question while I'm at it. On page 10 the main method's parameter, a String array, is described. I'm curious as to why the example using varargs has a trailing semicolon? Out of curiosity I tried adding the semicolon but as I suspected the compilation failed.

I went semicolon hunting and that one was clever enough to escape. (Seriously, it's a typo. Adding to the errata now)

Welcome to CodeRanch!
This is our practice tests book. The errata page is at

This item is not on there (since it isn't an errata.). Good explanation Jesse!
Oh fun. <sarcasm>. Thanks for sharing!
True. I've made a note about wrap arounds in our proviate list of stuff that can be clearer.
Yes, you need to know boolean operators.

Fun fact: I've used bitwise operators exactly once in my career. (It was for a bitmask.) The comments I wrote to go with that method were a good amount longer than the method!
I agree it isn't a type. We couldn't think of good wording for this question. Luckily, the question isn't about whether var is a type, but whether it can be in a switch statement.

Sharma Ashutosh wrote:@Jeanne Boyarsky thanks a lot for your response.

Could you please share with the me link for this bundle?

Amazon link for bundle

Sharma Ashutosh wrote:1. Does this bundle going to work for the latest Java certification which is not going to expire in next one year?

The latest Java certification is not going to expire in the next year. The Java 8 exam still exists so there is no reason to expect the Java 11 exam to go away so quickly. The link I provided is for the Java 11 exam. (815/16 originally, now 819)

Sharma Ashutosh wrote:2. Is there any new or revised edition coming from your side for this java certification? If yes, please let me know.

Oracle has announced an updated cert yet. I expect they will for Java 17 since it is a LTS edition. I recommend not waiting. There are many things that need to happen between Oracle's announcement of an exam and a book existing for it.