What is the name of this convention for curly braces?

前端 未结 7 1582
借酒劲吻你
借酒劲吻你 2021-02-19 13:58

I\'m a bit puzzled by the number of developers I see writing methods and classes with curly braces below the class name or the method. What convention are they following?

<
7条回答
  •  Happy的楠姐
    2021-02-19 14:37

    This is a standard style convention called the ANSI style. It's common in other languages besides Java, as well.

提交回复
热议问题