搜题
已收录475621道考试试题
丨 最后更新:2026-01-23”“ 搜索结果
为您找到相关结果约475621个
Prototype模式的有点
查看更多
其中"c.getDeclaredMethods"的作用是:
import java.lang.reflect.Method;
public class DumpMethods{
public static void main(String args) {
try {
Class c=Class.forName(args);
Method m=c.getDeclaredMethods();
for (int i = 0; i < m.length; i++) {
System.out.println(m.toString());
}
} catch (Throwable e) {
System.err.println(e);
}
}
}
查看更多
关于运行时常量池,下列哪个说法是正确的
查看更多
下列那些方法是线程安全的(所调用的方法都存在)
查看更多
归并排序法的时间复杂度和空间复杂度分贝是
查看更多
下面程序执行后的输出值为( )
#define SUM(x) 3*x*x+1
int main()
{
int i=5,j=8;
printf("%d\n",SUM(i+j));
return;
}
查看更多
在32位系统下运行以下程序,可能的输出结果为( )
int main ()
{
int i,a;
for (i=0;i<=30;i++)
{
a=0;
printf("%d:hello\n",i);
}
printf("%d:hello world",i);
return 0;
}
查看更多
下面程序的功能是从输入字符串中找出最长字符串,则下面程序哪行存在错误( )
#include "stdio.h"
#include "string.h"
#define N 10
int main()
{
char s, * t; line:1
int j; line:2
for (j=0; j
查看更多
类A定义如下,则在横线处补充( )可以完成拷贝aa到a( )
Class A{
Char*a;
Public:
A():a(0){}
A(char*aa) {
a=_________;
Strcpy(a,aa);
~A(){delete a;}
};
查看更多
下面程序执行输出结果为( )
#include
int fun(int i)
{
int cnt = 0;
while(i)
{
cnt++;
i = i&(i-1);
}
return cnt;
}
int main()
{
printf( "%d\n", fun(2017) );
return 0;
}
查看更多

Andriod下载
iPhone下载