title: How to get value of byte that belongs to out of range?
body: <pre><code>{double a = 295.04;
  int b = 300;
   byte c = (byte) a;
   byte d = (byte) b;
   System.out.Println(c +" " + d);}
  </code></pre>
  
  <p>Storage size of byte is 8 bits and maximum positive byte value is 127.so c isn't equal to 300.Then I tried to convert 300  to binary number.The binary number(of 300) has 9 bits.I confused to get value of c and d .
  why do I get c = 39 and  d = 44 ?</p>