In javadoc, what is the difference between the tags @throws and @exception?

前端 未结 0 1846
自闭症患者
自闭症患者 2021-02-11 13:25

Take the following implementation of a array-based stack of chars for example:

public char peek() throws Underflow {
    if (!isEmpty()) {
        return stack[p         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题