开发者

Java 7 Objects class [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. 开发者_StackOverflow中文版 Closed 11 years ago.

There is a public final class Objects in Java 7 that extendes the java.lang.Object base class.

Will this by default be the base class like or do we need to call the method on "Objects" class and call the corresponding methods?


No. Nothing changes. The Objects class is simply an utility class. It has only static methods, it's in the util package, and does what ObjectUtils from commons-lang is doing.


Objects is final and it extends Object giving you null safe utilities.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜