Funny
Q1: Is there any value for i where the following statement prints "true"?
public class Q1 {
public static void main(String[] args) {
int i = ???;
if( i != 0 && i == -i) {
System.out.println("true");
}
}
}
- Answers
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------------------------------------------------…