r/java • • Jun 02 '18

5 Java concepts explained: Overloading, overriding, shadowing, hiding, and obscuring

https://programming.guide/java/overloading-overriding-shadowing-hiding-obscuring.html
240 Upvotes

23 comments sorted by

View all comments

28

u/Hatefiend Jun 02 '18

Wow, I actually had no idea about obscuring.

54

u/sim642 Jun 02 '18

Because it never happens with proper naming where variables start lowercase.

-3

u/jacobbeasley Jun 03 '18

import System as Sys;

8

u/sim642 Jun 03 '18

Java doesn't have import renaming.

1

u/jacobbeasley Jun 04 '18

Yeah yeah yeah... gotta use groovy if you want that ;)