posted 21 years ago
code from one of the mock exams:
output of 0 on execution.
why does it not give a compiler error at line 3? as we are calling the method getMeJ() before its created? whats the logic behind?
But when we replace the method getMJ() with a variable undeclared(say i=j). it results in compiler error of forward referencing.
can anyone explain please.
thanks
zarina