Important Java Mcq 1

methods in all nested classes can be declared static?

a. Yes

b. No

Answer:

a. Yes

Explanation:

Methods in all nested classes can be declared static. All nested classes can be declared static. Static member classes can contain non-static methods.

Related MCQs
Aniket Malik

Aniket Malik

CERTIFIED TUTOR/TRAINER WITH 300+ REVIEWS

Facing difficulty with

this concept?