private static final Logger LOGGER = Logger.getLogger(AbstractDbClient.class);
protected Connection connection;
protected Connection connection;
private static final Logger LOGGER = Logger.getLogger(AbstractDbClient.class);
哪个顺序更适合字段声明?有些书指出应该通过私有/公共/受保护/等来订购它们,如果基于此,第二个代码更好,但看起来很糟糕。如果包含静态最终变量或静态变量?哪个顺序规则是?