现役nba巨星排名 :WУйPԇ}

rg2017-06-29 Pԇ}Ŀ ҪͶ

nbaֱ www.oivyya.tw CNnbaֱ WСҎǾWУйPԇ}ϣ~

⼀. x}

1. ⾯PJAVAfe`?

A^нYThrowableErrorException^ThrowableRuntimeException

IOException^Exception

⾮RuntimeException⼀ⲿe`횱 try{}catchZK@

ErrorwϵJava\⾏ϵyеăȲe`ԼYԴıMErrorҪ׽

RuntimeExceptionwϵe`DQMԽLԇDLָᘵȵ횱

try{}catchZK@BCD

2.

zǷچ}ָ}fݔY

public class HelloB extends HelloA

{

public HelloB()

{

}

{

System.out.println(

}

static

{

System.out.println(

}

public static void main(String[] args)

{

new HelloB();

}

}

class HelloA

{

public HelloA()

{

}

{

System.out.println(

}

static

{

System.out.println(

}

}

Astatic A I’m A class static B I’m B class

C

Dstatic A static B I’m A class I’m B classI’m A class static A I’m B class static B

3. zǷچ}ָ}fݔY

package algorithms.com.guan.javajicu;

public class Inc {

public static void main(String[] args) {

Inc inc = new Inc();

int i = 0;

inc.fermin(i);

i= i ++;

System.out.println(i);

}

void fermin(int i){

i++;

}

}

1

2

3ABCD

4. zǷچ}ָ}fݔY

package algorithms.com.guan.javajicu;

public class Example {

String str = new String(

char[] ch = {a,b,c};

public static void main(String[] args) {

Example ex = new Example();

ex.change(ex.str, ex.ch);

System.out.print(ex.str +

System.out.print(ex.ch);

}

public void change(String str, char ch[]){

str=

ch[0]= g;

}

}

test okandabc

test okandgbc

Dgoodandgbc

5. PSpringIoCe`ǣ

A

B

C

DIoCָ֮gPϵɳaֱӲٿ^“ƷD”ָƙɑ⽤aDⲿƙDIoCƄš؟M˿đ⽤aÓx_ʹ⽤SpringIoCrָֻMҪČ\⾏rSpringIoCXMLÔ

o

⼆. xx}

6. ⾯Pjavadf_?

A

B

C

Dd(bootstrap class loader)⽤d Java ĺ⼼⽤ԭ⽣a팍FĔUչd(extensions class loader)⽤d Java ĔUչϵyd(system class loader) Java ⽤·(CLASSPATH)d Java tomcatÿApp⼀Loader⾥⾯WebAppClassLoaderҪdWebAppµ

rȡClassLoaderʹ⽤

7. ڷ⺴jQԒۙ⽅?

A

B

C

Dʹ⽤Cookieʹ⽤URL،ʹ⽤[صı⽅܆Ϊʹ⽤

. }

8. 2nxnʹxnͬʣµn֮͵IJ⼩

9. ЃɂļϵÿԪض⼀η佻缯{[4,8],[9,13]}{[6,12]}Ľ{[6,8],[9,12]}

10. ⼀⽂10000⽤JavaF⼀ྀ̳@10000ݔ5⽤⽂(Ҫݔÿ⽂еĔͬ)Ҫ󆢄10Ƀ⼀M֞5MÿMɂ̷քe⽂е攵żݔԓM⼀⽂Ҫżÿӡ10żԺ͌攵̴ӡ10攵˽M⾏ͬrҪӛݔMÿ1000ڿ_дӡǰɔо̽Yڿ_ӡ”Done”.

11.

zǷچ}ָ}fݔY

package algorithms.com.guan.javajicu;

public class Example {

String str = new String(“good”);

char[] ch = {‘a’, ’b’, ’c’};

public static void main(String[] args) { Exampleex = new Example();

ex.change(ex.str, ex.ch);

System.out.print(ex.str + ” and ”);

System.out.print(ex.ch);

}

public void change(Stringstr, char ch[]) {

str = “test ok”;

ch[0] = g;

}

}

P