Java认证模拟题及分析5
question 56)
you are using the gridbaglayout manager to place a series of buttons on a frame. you want to make the size of one of the buttons bigger than the text it contains. which of the following will allow you to do that?
2) the setfill method of the gridbaglayout class
4) the fill field of the gridbagconstraints class
answer to question 56
--------------------------------------------------------------------------------
which of the following most closely describes a bitset collection?
2) a method for flipping individual bits in instance of a primitive type
4) a collection for storing bits as on-off information, like a vector of bits
--------------------------------------------------------------------------------
you have these files in the same directory. what will happen when you attempt to compile and run class1.java if you have not already compiled base.java
package base;
protected void amethod(){
}//end of amethod
package class1;
public class class1 extends base{
base b = new base();
}//end of main
1) compile error: methods in base not found
3) compilation followed by the output 'amethod'
answer to question 58
--------------------------------------------------------------------------------
what will happen when you attempt to compile and run the following code
private void amethod(int ibase){
编辑推荐:
温馨提示:因考试政策、内容不断变化与调整,长理培训网站提供的以上信息仅供参考,如有异议,请考生以权威部门公布的内容为准! (责任编辑:长理培训)
点击加载更多评论>>