在以下 Swing 组件中,能为它指定布局管理器的是 ( )
时间:2021-01-04
人气:0
以下关于 AWT 与 Swing 之间关系的叙述,正确的是 ( )
设有以下代码:
String s l="123" ;String s2="123" ;
String s3=new String("123") ;
则表达式 s1==s2 和 s1==s3 的值分别是 ()
设类 U 声明,及对象 u 和 v 的定义如下:
class U{
int x, int y;
U(int a, int b){x= a; y = b;}
void copy(U a){ x = a.x; y = a.y;}
}
U u = new U(1, 2), v = new U(2, 3);
在以下供选择的代码中,可能引起系统回收内存的是
()
下列字符组合不能作为Java整型常量的是 ()
Java Application源程序的主类是指包含有()方法的类。
时间:2020-12-31
编译JavaApplet源程序文件产生的字节码文件的扩展名为()
编译并运行以下程序,以下描述哪个选项是正确的( )
1. class X{
2. protectied String toString( )i{
3. return super.toString();}
4. }
关于以下代码段的说法正确的是()
1.String s="abcde";
2.StringBuffer s1=new StringBuffer("abcde");
3.if(s.equals(s1))
4.s1=null;
5.if(s1.equals(s))
6.s=null;
有以下方法的定义,请选择该方法的返回类型()。
ReturnType method(byte x, double y)
{
return (short) x/y*2;