public class Second {
public static void main(String[] args) {
System.out.println(1>2?22:43);
int a,b;
a=11;
b=(a==116)?22:33;
System.out.println(b);
}
}
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.
Are there any similar types of logic that i should keep my eye any suggestions will help.Thank you !!