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