title: Possible lossy conversion from int to byte error in byte methods
body: <p>I have a byte variable</p>
  
  <pre><code>byte A;
  </code></pre>
  
  <p>and the setters-getters methods</p>
  
  <pre><code>    public void setA(byte A) throws NumberBelowEqualZeroException{
          if(A &gt; 0)
              this.hoursPerWeek = hoursPerWeek;
          throw new NumberBelowEqualZeroException();
      }
  
      public byte getWorkingHoursPerWeek(){
          return hoursPerWeek;
      }
  </code></pre>
  
  <p>when I try to set the variable in main</p>
  
  <pre><code>AClass.setA(0);
  </code></pre>
  
  <p>NetBeans complains with the message <em>incompatible types. Possibly lossy conversion from int to byte</em>. None of the above are int. I cannot understand what is going on. Should I convert byte type like <code>byte A = new Byte(A)</code>? Thank you for your help.</p>