使用当前浏览器访问考试宝,无法享受最佳体验,推荐使用 Chrome 浏览器进行访问。
更新时间: 试题数量: 购买人数: 提供作者:
有效期: 个月
章节介绍: 共有个章节
我的错题 (0道)
我的收藏 (0道)
我的斩题 (0道)
我的笔记 (0道)
顺序练习 0 / 0
随机练习 自定义设置练习量
题型乱序 按导入顺序练习
模拟考试 仿真模拟
题型练习 按题型分类练习
易错题 精选高频易错题
学习资料 考试学习相关信息
public static void main(String[] args) {
int x=1,a=0,b=0;
switch(x)
{
case 0:b++;
case 1:a++;
case 2:a++; b++;
}
System.out.println("a="+a+",b="+b);
int y = 0;
for (int i = 0; i<10; ++i) {
y += i;
public class Main {
while (true) {
System.out.println("Hello World");
System.out.println("Hello Java");
int s=0;
for(int i=0;i<MyIntArray.length;i++)
s+=MyIntArray[i];
System.out.println(s);
public class Test {
private int t;
int x;
System.out.println(t);
class Dog {
Dog(int m) { }
Dog(double m) { }
int Dog(int m) { return 23; }
void Dog(double m) { }
1.public class ABC{
2. public int max( int a, int b) { }
3.
4.}
将以下哪个方法插入行3是不合法的。( )
class Student{
int age;
在主方法中,有如下两段程序代码A和B:
int a; //变量a是局部变量
System.out.println(a); //A段代码
Student student=new Student();
System.out.println(student.age); //B段代码
关于A和B两段代码的合法性,说法正确的是:( )。
class Main {
static int x = 10;
static {
x += 5;
System.out.println("x=" + x);
public static void main(String args[ ])
x /= 3;