Question

all are True or False 1 An inner class may access private data of the containing...

all are True or False

1 An inner class may access private data of the containing class,

2 An inner class has a special constructor that has different characteristics of a 'normal' class.

3 An inner class that has no name and is both declared and created at the same time is called an unnamed class.

4 The purpose of closures (lambda expressions) is to make the code more readable to others who may need to maintain and support it.

5 Complex programs require the use of anonymous classes for correct implementation.

Homework Answers

Answer #1

Q. All are True or False

Answer: All are TRUE

  • An inner class may access private data of the containing class,
  • An inner class has a special constructor that has different characteristics of a 'normal' class.
  • An inner class that has no name and is both declared and created at the same time is called an unnamed class.
  • The purpose of closures (lambda expressions) is to make the code more readable to others who may need to maintain and support it.
  • Complex programs require the use of anonymous classes for correct implementation.
Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions