Friday, 7 September 2012

Given the following code: Public interface MyClass { Void myMethod (); } The class which implements MyClass | JAVA JSP

  A. Should have myMethod which must necessarily be public.
  B. Should have myMethod which could be "friendly" or public.
  C. Should have myMethod which should not throw any checked exceptions.
  D. Should have myMethod which cannot be synchronized.

  Ans: A,C

No comments: