I was looking for a language to learn, and I saw that Rust is getting quite popular.
Two things impressed me about Rust, memory safety and preventing segfaults.
How does Rust achieve this? What differences between Rust and Java for example enable Rust's safety features?