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.
私はJavaが初めてで、問題があります。
Java でこの警告を閉じる方法
「シリアル化可能なクラス hrd1 は、long 型の static final serialVersionUID フィールドを宣言していません」と表示されます
次のようにクラスに変数を追加できます。
private static final long serialVersionUID = 1L;
または、クラスに supresswarnings アノテーションを追加します
@SuppressWarnings("serial") public SomeClass {