8.JavaÓïÑÔ¾ßÓнϺõݲȫÐԺͿÉÒÆÖ²ÐÔ¼°ÓëÆ½Ì¨Î޹صÈÌØÐÔ¡£ ( ) ( ) ( )
( )
9.JavaÓïÑԵĻù±¾Êý¾ÝÀàÐÍÓÐ4ÖÖ£ºÕûÐÍ¡¢¸¡µãÐÍ¡¢×Ö·ûÐͺͲ¼¶ûÐÍ¡£ 10.×ÓÀàËù¼Ì³Ð¸¸ÀàµÄ³ÉÔ±¶¼¿ÉÒÔÔÚ×ÓÀàÖзÃÎÊ¡£
11.JavaÓïÑԹ涨ÔÚǶÌ׵ijÌÐò¿éÖв»ÔÊÐí¶¨ÒåͬÃûµÄ³ÉÔ±±äÁ¿¡£ 12.JavaÓïÑÔ²ÉÓÃ16λÑÕÉ«±ê×¼¡£JavaµÄµ÷É«°å±£Ö¤128É«¡£ 13.¾²Ì¬·½·¨Ö»ÄÜ´¦Àí¾²Ì¬±äÁ¿¡£
( ) 14.»²¼£¨Canvas£©ÊÇÒ»ÖÖ¿ÉÈÝÄɶà¸ö×é¼þµÄÈÝÆ÷¡£
15.JavaÓïÑÔÊÇÒ»ÖÖÇ¿ÀàÐÍÓïÑÔ£¬Êý¾ÝÀàÐÍת»»ÓÐÁ½ÖÖ£ºÒþº¬×ª»»ºÍÇ¿ÖÆ×ª»»¡£ 16.JavaÓïÑÔÖУ¬Êý×éÔÚ¾²Ì¬ºÍ¶¯Ì¬¸³ÖµÊ±¶¼ÅÐÔ½½ç¡£
( )
17.FrameÈÝÆ÷ÊÇÓб߿òµÄÈÝÆ÷£¬ËüÒ²ÊÇÒ»ÖÖ¶ÀÁ¢´°¿Ú£¬Ö»ÄÜ×÷Ϊ×îÍâ²ãÈÝÆ÷¡£ 18.¼¯ºÏSetÊÇͨ¹ý¼ü-Öµ¶ÔµÄ·½Ê½À´´æ´¢¶ÔÏóµÄ¡£ 19.Òì³£´¦ÀíÊÇÔÚ±àÒëʱ½øÐеġ£
20.ËÀËøµÄ²úÉúÊÇÒòΪ¶à¸öÏß³Ì¼ä´æÔÚ×ÊÔ´¾ºÕù¡£
ËÄ¡¢ÔĶÁÏÂÁгÌÐò£¬Çëд³ö³ÌÐòµÄÊä³ö½á¹û 1.
class B { int b; B(int x) { b = x;
System.out.println(\
}
}
class A extends B { int a;
A(int x, int y) { super(x); a = y; System.out.println(\£¬a=\
}
( ) ( )
( )
( ) ( )
}
public class Test {
}
public static void main(String[] args) { }
A obj = new A(13, 23);
´ð°¸ b=13 b=13£¬a=23 2.
public class Test1 { }
class AB { }
´ð°¸ Hello!I love JAVA. 3.public class Test {
public static void main(String[] args) { String s1; String s2;
AB(String str1, String str2) { }
public String toString() { }
return s1 + s2; s1 = str1; s2 = str2;
public static void main(String[] agrs) { }
AB s = new AB(\System.out.println(s.toString());
}
}
int[][] num1 = new int[2][3]; num1[0][0] = 3; num1[0][1] = 9; num1[0][2] = 60; num1[1][0] = 78; num1[1][1] = 79;
for (int i = 0; i <= 1; i++) { }
for (int j = 0; j < num1[i].length; j++)
System.out.print(num1[i][j] + \
System.out.println();
´ð°¸
3 9 60 78 79 0
4. public class Test {
public static void main(String[] agrs) { } ´ð°¸ s=30 s=90 s=180
int i, s = 0;
int a[] = { 10, 20, 30, 40, 50, 60, 70, 80, 90 }; for (i = 0; i < a.length; i++) }
if (a[i] % 3 == 0) { }
s += a[i];
System.out.println(\
5. public class Test3 {
public static void main(String[] agrs) { }
} class A {
private int privateVar;
public A(int _privateVar) { boolean isEqualTo(A anotherA) { } } ´ð°¸ false
if (this.privateVar == anotherA.privateVar) else
return false;
return true;
privateVar = _privateVar;
}
A a = new A(2);
A b = new A(3);
System.out.println(a.isEqualTo(b));
6. public class Test {
public static void main(String[] args) {
int[][] num1 = new int[2][3]; num1[0][0] = 3; num1[1][0] = 78;
num1[0][1] = 9;
num1[0][2] = 45;
num1[1][1] = 79;
for (int i = 0; i <= 1; i++) { }
int[][] num2 = new int[][] { { 1, 2, 3 }, { 7, 8 } ,{ 9 } }; for (int i = 0; i for (int j = 0; j < num1[i].length; j++) System.out.print(num1[i][j] + \ System.out.println();