本文介绍了最终静态和静态最终之间的差异的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我找到了一个代码,它声明代码如

I found a code where it declared code like

private final static String API_RTN_SUCCESS = "0";
private final static String API_RTN_ERROR = "1";

public static final String SHARED_PREFERENCE_CONFIG = "shared_preference_config";
public static final String STARTUP_SETTING_KEY = "startup_setting";

它们之间有什么区别或相同?或者私人公开

What is the difference between them or are they same? Or does it differ for private or public?

推荐答案

完全没有区别。根据

对于字段,所述生产按此顺序列出修饰符:

For fields, the said production lists the modifiers in this order:

对于方法:

这篇关于最终静态和静态最终之间的差异的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

05-27 20:38
查看更多