1. Sometimes we may get the following error message in an 'if' (selection) structure.
incompatible typesfound : intrequired: boolean
This is because, we have not specified a boolean expression as the condition of the 'if'; instead we might have written such an expression which is may be int, float, String or other types but not boolean.
See the code below:
int a=10,b=10;
if(a=b){ System.out.println("a...
Read More