What is the underscore actually doing in this Java code? [closed]

_ is the class name. It’s a very confusing one, but it works!

With the class renamed:

class Something {Something something;Something(){something=this;}}

And cleaned up:

class Something {
    Something something;
    Something() {
        something=this;
    }
}

And you can go crazy with this odd naming :)

class _{_ __;_ ____;_(){__=this;____=__;}_(_ ___){__=___;}}

In fact, Unicode is even supported, so this is valid:

class 合法類別名稱{合法類別名稱(){}}

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)