Can static variables be declared inside a local class?
(a) Yes, with public access specifier
(b) Yes, anywhere as required
(c) No, not possible in private access specifier
(d) No, not possible anyway
This question was posed to me in an online interview.
I would like to ask this question from Local Class topic in chapter Class Members & Types of Object Oriented Programming