4.2.10.A boolean cannot be converted to any other type.
public class MainClass{ public static void main(String[] argv){ int i=0; boolean b = true;
i = b;
}
}
Exception in thread "main" java.lang.Error: Unresolved compilation problem:
Type mismatch: cannot convert from boolean to int
at MainClass.main(MainClass.java:5)