title: Java get the default value of a type
body: <p>So I'm writing a program in Java after only using C# for a few years and I can't seem to find the answer to this anywhere. When creating a <code>generic&lt;T&gt;</code> class in C#, if you want to set a variable to the default value of <code>T</code>, you use <code>default(T)</code>. Is there the same functionality in Java and if so how would I do it?</p>