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

前端 未结 0 632
囚心锁ツ
囚心锁ツ 2021-02-11 13:52

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

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


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