Java modifiers syntax and format

后端 未结 5 770
梦谈多话
梦谈多话 2020-11-28 14:09

I find myself getting confused as to the order of access and non access modifiers. For example

abstract void go()  
abstract public void go()  
public final          


        
5条回答
  •  温柔的废话
    2020-11-28 14:36

    Modifiers go before the class or a type. According to the Java Language Specification, order between modifiers does not matter.

提交回复
热议问题