Help the world stop coronavirus! Stay home!

Prev Next

Java / static keyword

Can a static nested class access instance members of enclosing class?

No. Unlike static class methods, a static nested class cannot refer directly to instance variables or methods defined in its enclosing class; it can use them only through an object reference.

❤Cash Back At Stores you Love !!!❤

Earn your $10 reward when you make your first purchase through Ebates by signing up with clicking below button.

Ebates Coupons and Cash Back

More Related questions...

Show more question and Answers...

Concurrent collections

Comments & Discussions