Another way to prevent an explosion is to connect two jumper cable clips to both positive terminals on the batteries and then connect the other 2 cable clips to a solid metal part on both engines away from the batteries. This will keep sparks away from the batteries should hydrogen and oxygen be present.
But still an explosion is possible without using battery cables. I had one battery explode on an old 190D just cranking the engine with the starter.
P E H