Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私は多くのケースを見てきました。type は、参照を作成するためだけに使用されます。また、null 以外のオブジェクトを追加することはできません。では、参照を作成するためだけに「?」を使用しているのでしょうか?
また、null を追加するオプションを指定する必要性/用途は何ですか? add() メソッドをまったく使用せずに実装できたはずですよね?List < に null を追加するオプションを与える理由はありますか? > ?