b++; and b=b+1; are equivalent and will result in the same bytecode.
b will be equal to 3 before the main method is finished.
Edit: actually they are not equivalent: b=b+1; is wrong and should be b=(byte) (b+1); [cast to a byte, otherwise it is an int]