title: How to apply arithmetic operations to objects
body: <p>I am programming a vector class (in the mathematical sense), and it would be nice if I could do</p>
  
  <pre><code>vector1 + vector2
  </code></pre>
  
  <p>instead of</p>
  
  <pre><code>vector1.add(vector2)
  </code></pre>
  
  <p>Is this possible in java? Can I assign a behaviour to an arithmetic operation like the String class is able to? Or is this hardcoded in the compiler?</p>