浙江理工大学java题库 - 百度文库 ر

boolean͵ΪԱʱϵͳĬֵʼΪtrue double͵ռ洢32λ

133йJAVAҪʹõһȷ( D ) JAVAҪʹһȶ

ڳκεطֻҪڱʹǰͿ ֮ʹ

ֲʹ֮ǰԲʼϵͳʹĬϵijʼֵ 134JAVAУһ( D ) int $e,a,b =10; char c,d ='a'; float e=0.0d; double e=0.0f;

135ڱдJAVAʱΪijԱʼֵJAVAĬֵ˵ǣ C byte0 int0

long 0.0l float0.0f

136һJAVAԵ( A ) ָ

137ȷһ(? A ) ʶַĺԸ ʶִСд

ͱַ͡͡ ڻ

138һڱɲ֣ D ֵ С

139ĸ public void example(){...} ط D private void example( int m){...} public int example(){...} public void example2(){...}

public int example(int m, float f){...}

140ĸJavaȷʾ D 11 0x22 033 44H

141ĸmain()ĺϷ D

char args[] char args[][] String arg[] String args

142֪ʽint m[]={0, 1, 2, 3, 4, 5, 67 };? ĸʽֵ±ȣ B m.length() m.length-1 m.length()+1 m.length+1

143䶨5Ԫص飨? A int []a={22,23,24,25,12}; int a[]=new int(5); int [5] array; int [] arr;

144֪µִjava MyTest a b c ĸȷģ? C args[0] = \args[0] = \args[0] = \args[1]= 'c'

145ĸ䲻ܶһַ? B? char c1='a'; char c2=\char c4=97;

char c3='\A';

146JavaУWorkerPerson࣬WorkerĹ췽һ\䣨C?

Workerжsuper() Personжsuper() PersonĹ췽 ﷨

147ָĸ뷽public void add(int a){? }Ϊط( A ) public int add(int a) public void add(long a) public int add(long a) public void add(float a)

148ʽ1+2/3-4*5ֵΪ( B ) 1 -19 -5 0 149һΪMyClass࣬ҸɱʣôȷӦΪ( C ) private class MyClass extends Object class MyClass extends Object

public class MyClass

protected class MyClass extends Object

150ִ³a=0;c=0; do{ --c; a=a-1; }while(a>0); Cֵǣ C 0 1 -1 ѭ 151

ִ³a=0;c=0; do{ c--; a=a-1; }while(a>0); Cֵǣ C 0 1 -1 ѭ

һ£

1CPUָCRT????? F

2һװõıд洢ͳƹ?? T*

3ڼУִ߼IJǶϢмӹ?????????????????????????????????????????? 4ʱֵĴһdz﷨ϵĴ󡣡* 5һʱûвϵͳ

6ֵһòʽ洢

7JavaԿԿͻJavaСӦóԼķӦóȡ

8Java2ΪJ2EEJ2SEJ2MEJ2SEJavaҵ棬ҵӦ÷Ŀ

9JavaʺϿƽ̨Ӧó򡣡 10JavaʺϵͳܶIJϵͳJavaдġ

11JavaԴļչΪ.javaļ루һ¡ 12Javaƽ̨޹ҪJREʵֵġ

13JavaӦóApplicationͬJava AppletУҪõͻ֧֡

14װJDKʱҪûpathclasspathJAVA_HOME

£

1J2EEҵҵΪӦóĽ 2J2MEСͰѲƷǶʽ豸ѽ 3J2SE׼Ϊ濪͵ͶӦṩ˿еĽ

4JavaִСдԣؼֵĴСдܸclassдClassCLASSǴġ

5JavaԴд֮ļʽӲ̻UϣԴļֿȡģһһ¡

6JDKпУñjavac.exeɵļǶƿִļ

7JavaԷΪJava ApplicationJava Applet࣬зʽͬġ

8ϵͳMicrosoft Wndows XP/Wndows7LinuxUNIXMac OSȶ֧JavaIJϵͳ

9JavacJavaJavaԴJavaֽijֽļԴļͬչǣclass 10appletviewer JavaСִHTMLļе JavaС. Applet ǸģʾAppletн

11ѭforǰѾж岢ѭֵʼΪգֺŲʡԡ

12do?whileѭִйִѭһΣڸжǷִѭ

13JavaԵκַͣ͡͡ͲͶʹȽǷȣжǷ񲻵ȡ

14Javaṩרŵѭ䣺for䡢whiledo?while䡣

15switchѡṹУbreak˳switchģbreak򽫳ִз֮⣬һִ䡣

16switchеıʽֵͻַͻDz͡

17switchУcaseӾifӾƣһ䣬ҲǶ䡣

18switchУcaseӾǶ䣬ûţ

19switchУdefaultDZģǵʽֵκһcaseеֵƥʱִdefault

20JavaУÿASCIIӢռ8bitռֽڣ16bit

21JavaУ䡰boolean? t=1; booleanͱtֵΪtrue

22JavaУִ䡰boolean t=1&&8;ĽʹñtֵΪtrue

23֪䡰short t=640;ȷģ䡰short t=640000;Ҳȷ

24䡰b=2a+2;ȷı

25Javaûбָ÷Javaֻнͷռõڴ

26JavaͨջƼ˳ڴ 27JavaԵͰ顢ͽӿڡ

28Ϊ캯ֿԲͬ