java programming An anonymous class methods cannot access in

java programming

An anonymous class\' methods cannot access instance variables belonging to the class in which it is defined.

is this TRUE or FALSE?

Solution

True. An anonymous class\' methods cannot access instance variables belonging to the class in which it is defined.

Because anonymous class similar like local class, cannot be public, private or static.

java programming An anonymous class\' methods cannot access instance variables belonging to the class in which it is defined. is this TRUE or FALSE?SolutionTrue

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site