char ch='C';
成都創(chuàng)新互聯(lián)主營(yíng)吉州網(wǎng)站建設(shè)的網(wǎng)絡(luò)公司,主營(yíng)網(wǎng)站建設(shè)方案,成都app軟件開(kāi)發(fā),吉州h5小程序定制開(kāi)發(fā)搭建,吉州網(wǎng)站營(yíng)銷推廣歡迎吉州等地區(qū)企業(yè)咨詢
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
以上回答未驗(yàn)證,如果有錯(cuò)誤,請(qǐng)指出!
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默認(rèn)構(gòu)造函數(shù)沒(méi)有返回類型,系統(tǒng),同名的類,不是靜態(tài)的
16如果(改良薄噢樂(lè)安)需要的是值類型
17 C超載的方法的返回類型,與同一名稱的第一個(gè)方法,類型或二參數(shù)個(gè)數(shù)不同,對(duì)點(diǎn)
1、A 邏輯與
2.C 邏輯與和邏輯或的問(wèn)題。
3.B
4.C
5.D
6.AD
7.C
8.A
1、java.lang.Math里裝的都是和數(shù)學(xué)計(jì)算有關(guān)的方法,drawLine是畫圖的,所以不是.
2、代碼段的文件名要與包含public static void main()方法的類名一致“main() in class B”,所以暗示了文件名為B.java。可能誤導(dǎo)你錯(cuò)誤的選項(xiàng)是A.class B.class A.java
3、有幾個(gè)類就會(huì)生成幾個(gè)class文件,class A1,class A2,public class B,所以生成三個(gè)文件,且名字和這三個(gè)類名一致