> However, Java doesn't do the idiotic "write past the end of the buffer and keep going" thing that C does
C does no such thing. C _enables_ you to do such thing. Like, if you are an idiot, you can hit yourself with a hammer. Hammer is not to blame.