title: Is it possible to create my own primitive datatype in java. like int, float,double
body: <p>How to create my own datatype in java,  that will accept value range from 0 to 1024.</p>
  
  <p>My declaration would be.</p>
  
  <pre><code>kilobyte a=10;
  </code></pre>
  
  <p>Is it possible?</p>