1 Anonymous Class Defined New Public Attributes Globally Accessible B Methods Ride Methods Q37142088

1. An anonymous class can be defined…

a) With new public attributes that are globally accessible.

b) With methods that over-ride methods.

c) With more then one instance

d) Only when the parent class has a default constructor.

2.  When encapsulating code in a “try” block of a”try-catch-statement”…

  1. the argument(s) passed to a “catch” block must only be of thetype(s) of the exceptions thrown by methods invoked in the “try”block.
  2. the argument(s) passed to the “finally” block must be of thetype(s) of the exceptions thrown in the “try” block
  3. the argument(s) passed to a “catch” block must be of thetype(s) of the exceptions thrown in the “try” block

Answer


1.a)

OR
OR

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.