This week's giveaway is in the EJB and other Java EE Technologies forum. We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line! See this thread for details.
I had a Myclass object which did not have a testValue associated with it now when i ran the test i got an Invocation exception . This example is in customized form so it might not throw exception . However, in the real code we had to use a getter in the code block as:-
I could not understand why this worked because fields for the calling object are same in either case . CAn anyone explain ?