java could anybody explain this type of logic : <pre><code>   public class Second {

   public static void main(String[] args) {


    System.out.println(1&gt;2?22:43);
    int a,b;
    a=11;
    b=(a==116)?22:33;
    System.out.println(b);

}

}
</code></pre>

<p> I am java beginner i am having hard time on understanding this code  it does prints 22 but i'm not getting the logic behind it and what are these called if i have to know more about them.</p>

<p><p>Are there any similar types of logic that i should keep my eye any suggestions will help.Thank you !! </p>
