1
0

More than 3 years have passed since last update.

全く役に立たない小ネタ(Java)

Posted at

変数定義時に自身を参照できる

    static String foo = foo = "ABCD";
    String bar = bar = "ABCD";
    void hoge() {
        String baz = baz = "ABCD";
    }

実行結果(IDEONE)

https://ideone.com/48OXMp

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0