About question com.enthuware.ets.scjp.v6.2.13
Posted: Sun Apr 03, 2011 2:02 pm
public class Bond
{
public String ticker;
private double Coupon;
public String getTicker()
{
return ticker;
}
public void setTicker(String ticker)
{
this.ticker = ticker;
}
public double getCoupon()
{
return Coupon;
}
public void setCoupon(double coupon)
{
//do nothing
}
public java.util.Date getMaturity()
{
return new java.util.Date();
}
public boolean isFloater(){ return false; }
public boolean getCallable(){ return true; }
}
I thought the JavaBean naming convention for boolean retrieval was isCallable not as the answer states getCallable().
I would hate to get such a simple question wrong on the real exam, what do others think?
{
public String ticker;
private double Coupon;
public String getTicker()
{
return ticker;
}
public void setTicker(String ticker)
{
this.ticker = ticker;
}
public double getCoupon()
{
return Coupon;
}
public void setCoupon(double coupon)
{
//do nothing
}
public java.util.Date getMaturity()
{
return new java.util.Date();
}
public boolean isFloater(){ return false; }
public boolean getCallable(){ return true; }
}
I thought the JavaBean naming convention for boolean retrieval was isCallable not as the answer states getCallable().
I would hate to get such a simple question wrong on the real exam, what do others think?