十年网站开发经验 + 多家企业客户 + 靠谱的建站团队
量身定制 + 运营维护+专业推广+无忧售后,网站问题一站解决
char ch='C';
成都创新互联主营吉州网站建设的网络公司,主营网站建设方案,成都app软件开发,吉州h5小程序定制开发搭建,吉州网站营销推广欢迎吉州等地区企业咨询
switch (ch) {
case 'A':
System.out.println("you are wrong ");
break;
case 'B':
System.out.println("you are wrong ");
break;
case 'C':
System.out.println("you are right ");
break;
case 'D':
System.out.println("you are wrong ");
break;
}
1. B
2. A
3. C
4. C
5. D
6. B
7. B
8. C
9. B
10.A
以上回答未验证,如果有错误,请指出!
Fourth questions wrong, should be C, Java class
parameter list fifth questions wrong, goto is a reserved word Java, but also belongs to the keyword Java is not used, malloc is a variable named
sixth questions wrong, to initialize local variables, global variables have a default value of
8 B
10 C, the default variables belong to global variables value, and belongs to the static, available in the static method or the main method inside
12 D = is the comparison operator, with || logic operator, | is bitwise (binary)
13 A
14 B the default constructor is defined in your class, and no other constructors, define the parameter less constructor
15 B默认构造函数没有返回类型,系统,同名的类,不是静态的
16如果(改良薄噢乐安)需要的是值类型
17 C超载的方法的返回类型,与同一名称的第一个方法,类型或二参数个数不同,对点
1、A 逻辑与
2.C 逻辑与和逻辑或的问题。
3.B
4.C
5.D
6.AD
7.C
8.A
1、java.lang.Math里装的都是和数学计算有关的方法,drawLine是画图的,所以不是.
2、代码段的文件名要与包含public static void main()方法的类名一致“main() in class B”,所以暗示了文件名为B.java。可能误导你错误的选项是A.class B.class A.java
3、有几个类就会生成几个class文件,class A1,class A2,public class B,所以生成三个文件,且名字和这三个类名一致