Java modifiers syntax and format

后端 未结 5 779
梦谈多话
梦谈多话 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:21

    Yes, there's the Java Language Specification, which explains all that is valid syntax in the language and there is also the coding conventions used by Oracle/Sun, which is a bit old but still explains a lot of stuff.

提交回复
热议问题