C++ code meaning and conversion in Java
<p>I have in C++</p>

<pre><code>char *s, mask;
// Some code

If(*s == 0){ //Some more code}

If(*s &amp; mask){ //Some code}
</code></pre>

<p>In Java can I write this like</p>

<pre><code>byte s,mask;
//Some code 
If(s == (byte)0x0){ //Some more code}   
If((s &amp; mask) != (byte)0x0){ //Some Code} 
</code></pre>

<p>Is the java code correct? </p>
