Go back to 1Z0-895 - Java Platform, Enterprise Edition 6 Enterprise JavaBeans Developer Certified Expert Exam

Question :-

A bean developer writes a stateless session bean FooEJB with the following asynchronous business method: @Asynchronous public Future<Integer> fooAsync () { System.out.printIn ("begin"); int i = 1; System.out.print("end"); Return new AsyncResult<Integer> (i); } Given the following code, where fooRef is an EJB reference to FooEJB: Future<Integer> fooFuture = fooref.fooAsync(); fooFuture.cancel (true); Which two represents possible system output after all processing has completed? (Choose two)
Begin end
Begin
End
1
<no output>

Want to practice for 1Z0-895 - Java Platform, Enterprise Edition 6 Enterprise JavaBeans Developer Certified Expert Exam ? Click here.