The net effect is that a service constructor either returns a non-null instance of the requested service, or throws an exception;
基于1个网页-相关网页
The net effect is that a service constructor either returns a non-null instance of the requested service, or throws an exception;
实际结果是服务构造函数或者返回所请求服务的非空实例,或者抛出异常;
If the number is more than or equal to three, it throws an exception.
如果数目大于或等于3,它将抛出一个异常。
In this case, ensuring that pop throws an exception if push hasn't been called (or logically, if the stack is empty) means that the stack has a state.
在这种情况下,如果push没有被调用(或者从逻辑上讲,栈为空)的情况下确保pop抛出一个异常,则意味着栈有一个状态。
应用推荐