阅读背景:

与具有公共静态最终字段的类相比,Java enum的优点是什么?

来源:互联网 

I am very familiar with C# but starting to work more in Java. I expected to learn that enums in Java were basically equivalent to those in C# but apparently this is not the case. Initially I was excited to learn that Java enums could contain multiple pieces of data which seems very advantageous (I am very familiar with C# but starting to work




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: