Can transient keywords mark a method?

前端 未结 5 974
小鲜肉
小鲜肉 2021-02-01 17:45

In a java class java.util.Locale, I find that the keyword transient marked a method.

 public final class Locale
    implements Cloneable, Serializable
{
    priv         


        
5条回答
  •  难免孤独
    2021-02-01 17:59

    Java documentation states that transient keyword is only applied to instance variables so this doesn´t make any sense

提交回复
热议问题