After James Cameron finished the script, he discovered that there had been a real "J. Dawson" (Joseph) who's as a Trimmer and died aboard the Titanic. The number 227 denotes his body number when found by the crew of the Mackay Bennet.
A totally true fact about the Titanic.
Titanic movie mistakes, gotta look for these!
24 facts about the Titanic