1) Its true that, Inner classes which are not declared static can NOT have static memebers. Only Static Inner classes can have static members.
2) Wait and notify are Final methods in the Object class.
3) You can pass method call to if condition.Here is a sample code
class test{
test(){}
public boolean testIt(int i){
if (i > 2)
return true;
else return false;
}
public static void main(
String args[]){
test t1 = new test();
int j = 3;
if(t1.testIt(j))
{ System.out.println("U can ");}
else {System.out.println("U can NOT");}
}
}
Correct me if I am wrong
Thanx