Jeanne Boyarsky

author & internet detective
+ Follow

Recent posts by Jeanne Boyarsky

This week, we're delighted to have Dana Pylayeva helping to answer questions about the new book DevSecOps Adventures: A Game-Changing Approach with Chocolate, LEGO, and Coaching Games.
See the table of contents and a sample chapter online

The promotion starts Tuesday, November 5th, 2024 and will end on Friday, November 8th, 2024

We'll be selecting four random posters in this forum to win a free copy of the book provided by the publisher, Apress.


Image from https://m.media-amazon.com

Please see the Book Promotion page to ensure your best chances at winning!

Posts in this welcome thread are not eligible for the drawing, and should be reserved for welcoming the author. Questions posted in this topic are subject to removal.
Scheduled promotions:

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

Starting DateCoverBookAuthor(s)PublisherCodeRanch Forum
November 5DevSecOps Adventures: A Game-Changing Approach with Chocolate, LEGO, and Coaching GamesDana PylayevaApressAgile
November 12No promo US holiday week
November 19Available
November 26No promo US holiday week
December 3Available
December 10Available
December 17Available




Go back to the main BookPromotions page.
1 day ago
CodeRanch Book Promotions - This Year's Winners


A big Congratulations to all our winners!

See our BookPromotions2022Winners

DateCoverBookAuthor(s)PublisherWinnersStatus
January 17Practical Debugging at Scale: Cloud Native Debugging in Kubernetes and ProductionShai AlmogApressLucian Maly, Tim Holloway, Greg Horie, Dinkar ChaturvediWinners sent in 2/17/23
January 23Software Teaming: A Mob Programming, Whole-Team ApproachWoody Zuill and Kevin MeadowsIndependently published  Junilu Lacar, Jose Almonte, Sam Muller, Rashmi varmaWinners sent in 2/17/23
February 14Mockito Made Clear (e-book only)Ken KousenPragmatic  R.J. Arzki, Bhaskar Bantupalli, Mike Gosling, Marcos SilvestriWinners sent to publisher (3/5/23); R.J. Arzki - received; Bhaskar Bantupalli received
February 28Getting to Know IntelliJ IDEA: Level up your IntelliJ IDEA knowledge so that you can focus on doing what you do bestTrisha Gee and Helen ScottIndependently published  Jose Almonte, Anthony Esposito, Dustin Wright, meenakshi sundarWinners sent to publisher (4/15/23)
March 7Troubleshooting Java: Read, debug, and optimize JVM applicationsLaurențiu SpilcăManning  German Gonzalez-Morris, Junilu Lacar, Stephan van Hulst, sai rama krishna Winners sent to publisher (4/15/23)
March 21Java Persistence with Spring Data and HibernateCătălin TudoseManning  Rishi Chopra, Dinkar Chaturvedi, Himai Minh, Simon VerhoevenWinners sent to publisher (4/15/23)
March 28Experimentation for Engineers: From A/B testing to Bayesian optimizationDavid SweetManning  Paul Nisset, Simon Verhoeven, Junilu LacarWinners sent to publisher (4/15/23)
April 11Practical Design Patterns for Java Developers: Hone your software design skills by implementing popular design patterns in JavaMiroslav WengnerPacktRashmi varma, Junilu Lacar, Salil Wadnerkar, Tanish goel Sent in winners 5/14/23
April 18OCP Oracle Certified Professional Java SE 17 Developer (Exam 1Z0-829) Programmer's Guide Khalid MughalOracle Press  Vasily Strelnikov, Gouri Kalanidhi, Charles O'Leary, Bhaskar BantupalliSent in winners 5/14/23; Charles O'Leary - received; Gouri Kalanidhi - received; Bhaskar Bantupalli received
April 25The Absolute Beginner's Guide to Java  LiveVideoMatthew SpeakeManning  Carl McGee, Anthony Esposito, Dustin Wright, Chandrasekaran SanthanaKrishnan Sent in winners 5/14/23
May 23Transitioning to JavaKen FogelPacktCampbell Ritchie, Kevin Abel, Phillip Powell, Cris MarinescuSent in winners 7/17/23
May 30Resilient Oracle PL/SQL: Building Resilient Database Solutions for Continuous OperationStephen MorrisO'ReillyDon Horrell, Bhaskar Bantupalli, Roland Mueller, Anthony EspositoSent in winners 7/17/23 Roland Mueller received; Bhaskar Bantupalli received
June 6A Functional Approach to Java: Augmenting Object-Oriented Java Code with Functional Principles Ben WeidigO'ReillySean Corfield, paul nisset, Simon Verhoeven, Dinkar ChaturvediSent in winners 7/17/23
June 13The Creative ProgrammerWouter GroeneveldManningJunilu Lacar, Sai Hegde, Rishi Chopra, T H Lim  Sent in winners 7/17/23
June 27Docker: Up and RunningSean P. Kane & Karl MatthiasO'ReillyShaik Ashish, Roland Mueller, Stephen Morris, Tim HollowaySent in winners 7/17/23 Roland Mueller received
August 1Functional Programming in Java: Harness the Power of Streams and Lambda ExpressionVenkat SubramaniamPragmatic PressPiet Souris, Michał Płachta , Don Horrell , Majid HameedSent winners to publisher 9/9/23, - Received ebook: Majid Hameed
August 8Java Basics: A Practical Introduction to Full-Stack Java Shai AlmogSelf Published Carl McGee, Tim Holloway, Piet Souris, Gary W. LucaSent winners to publisher 9/9/23. Piet Souris: received book 09/10/2023
September 12Learning GitHub Actions: Automation and Integration of CI/CD with GitHubBrent LasterO'ReillyGreg Horie, Sean Corfield, Roland Mueller, Arjunkumar ShastryWinners sent to publisher 10/26/23. Roland Mueller: received
September 19Developer Career Masterplan: Build your path to senior level and beyond with practical insights from industry experts  Heather VanCura and Bruno SouzaPacktCampbell Ritchie, Majid Hameed , Tim Holloway , Anand AthinarayanaWinners sent to publisher 10/26/23; publisher unresponsive. looking for alternate contact
September 26Getting started with Java on the Raspberry Pi (e-book)Frank DelPorteLean PublishingGustavo Bonesso, Igor De Souza, Burk Hufnagel, Majid HameedWinners sent to publisher 10/26/23 - Received ebook: Majid Hameed
October 24Quantum Computing Algorithms: Discover how a little math goes a long wayBarry BurdPacktThomas Rappold, Joe Reddix, Stephen Morris, Alec SwanSent to publisher 12/5/23; publisher unresponsive. looking for alternate contact
December 4Darcy DeClute's Scrum Master Certification Guide: The Definitive Resource for Passing the CSM and PSM ExamsDarcy DeCluteSelf PublishedOlufisayo Deji, Matthew Nelson, Cameron Wallace McKenzie, satya Priya SundarSent in winners 12/17/23
February 20Murach's MySQLJoel MurachMurachAnthony Esposito, Roberto Cheritaz, meenakshi sundar, Roland MuellerNo winners replied
March 5Modern frontends with htmxWim DeblauweLeanPubAlbert Attard, Luca Botti, Fintan Conway, Maarten MuldersWinners sent to publisher (4/14/24)
March 12Learn Generative AI with PyTorchMark LiuManningLucian Maly, Gustavo Bonesso, Claude Moore, Dinkar ChaturvediWinners sent to publisher (4/14/24)
June 4OCP Java 17 & 21 Programmer Certification Fundamentals Hanumant DeshmukhEnthuwareMikalai Zaikin, Theodore Casser, Vedran Custovic, Stephane ClinckartWinners sent to publisher (6/18/24) - Theodore Casser: Received (6/21/24)
June 25Head First Software Architecture: A Learner's Guide to Architectural ThinkingRaju Gandhi, Mark Richards, Neal FordO'ReillyR.J. Arzki, Amro Ali, Geff Chang, Vidhya DeivaManiWinners sent in 8/4/24; R.J. Arzki received 06.08.2024;
August 13Security in Spring Boot REST Web Service ApplicationsHoward HydeUdemySalil Wadnerkar, Bhaskar Bantupalli, Rodrigo Tassini, Hiroki Inoue, Pedro Struck, Tobias Zeiler, Miles DavenportSent codes to winners 8/18/24; Bhaskar Bantupalli received
September 17Communication Patterns: A Guide for Developers and Architects Jacqui ReadO'ReillyRohan Bryant, Rodrigo Tassini, Greg Horie, Anthony EspositoSent in winners (11/3)


Note: All dates in mm/dd/yyyy format

Go back to the main BookPromotions page.

For questions about this page or to schedule a promotion, contact: bookpromotion AT javaranch DOT com
2 days ago
I stand by the answering being 4. HEre's the same question but with a * at the beginning and end:



The output is four lines:
*   One "    Two ""

  Three """
*

This question is testing whether the reader knows the placement of the final """ matters. This  pair are the same and gives a one line String.


And these are the same and add a trailing \n.
You are correct. We found this "off by one error" when updating for Java 21 and fixed it there. Good eyes!
Preview features are allowed to change behavior and this one did!
This seems like an English thing> Both sound right to me.

It's never instantiated with the new keyword, therefore it is never instantiated.

vs
It's never instantiated without the new keyword because the key word is missing.
Yes. This is something we went through in the Java 21 book. There were a lot of places we vaguely said "class".
We did it that way because in the section on inner classes.
Confirmed. That we didn't typo (we copy pasted) so a helpful editor must have changed it!

Added to the OCP 17 and 21 book errata.
I agree with everything Mike said. However, the exam doesn't cover everything that exists. And our statement about nulls is what you need to know for the exam - that you can't use them for sorted collections (with the default comparator, which granted we didn't say). You don't have to know whether ArrayDeque allows nulls.
This falls into the category of "not quite an error but could be better." The inten is understandable in the text.

We did change it to explicitly say Locale.US in the Java 21 book though
<looking at with a magnifying glass>

Yup. I agree I missed the point last time. I've added it to the errata for 17 and 21. I also want to congratulate you on finding the first Java 21 book errata!
Confirmed and logged in the errata. I also confirmed this was already fixed in the Java 21 book. (which is at the printer)
Pge 890 says about calling registerOutParameter(). There can be other things wrong with the code, but that has to be fixed first.