hey guys
can sum1 tell me how do we choose a proper answer for this question
What is the result of compiling and running this class?
A.The
string Test is printed to the standard out.
B.A runtime exception is raised stating that an object has not been created.
C.Nothing is printed to the standard output.
D.An exception is raised stating that the method test cannot be found.
E.An exception is raised stating that the variable this can only be used within an instance.
F.The class fails to compile stating that the variable this is undefined.
Select all correct answers
The correct answer given is F...However even E looks pretty much acceptable because whn I tried to compile and run the program the exact error I got was
non-static variable this cannot be referenced from a static context
this.print();
^
So neither of the answers had the exact match ...so how do we choose the proper answer ??
