当前位置: 技术问答>java相关
JAVA违例的小问题
来源: 互联网 发布时间:2015-02-05
本文导语: 1.throws 和throw 两个关键词的用法 2. visibroker for java书中的例子:我感觉有错误(第二个throws) public class AccountImpl extends Bank.AccountPOA { public AccountImpl(float balance) { _balance = balance; } public fl...
1.throws 和throw 两个关键词的用法
2. visibroker for java书中的例子:我感觉有错误(第二个throws)
public class AccountImpl extends Bank.AccountPOA {
public AccountImpl(float balance) {
_balance = balance;
}
public float balance() throws AccountFrozen {
if (_balance
2. visibroker for java书中的例子:我感觉有错误(第二个throws)
public class AccountImpl extends Bank.AccountPOA {
public AccountImpl(float balance) {
_balance = balance;
}
public float balance() throws AccountFrozen {
if (_balance