I think you have a misunderstanding of undefined behavior.
> So, all the languages where you can just inadvertently "say" Undefined Behaviour aren't meaningfully achieving this goal.
This is absolute nonsense.
You should generally avoid writing programs with undefined behavior.
C and Java can be used to write programs with defined behavior (even if you can't) that are used by billions of users every day.