您好,欢迎访问三七文档
当前位置:首页 > 高等教育 > 大学课件 > java2实用教程课后习题答案(第三版简单题)
1.Java1Java:Edit.java2Java:Javajavac.exe*.class3Java:JavaJavajava.exeJavaJava2.publicmainmainpublicpublic3.JavapublicJavaJavapublicpublic:.javapublic,public.javapublic.java:.java1.:2.:3.(static)(static):4.:5.protected:protected6.::staticstatic:classA{intx;//staticinty;//}::A1.x=10;A1.y=20;A2.x10A2.y:classA{intx;staticinty;staticvoidfunc(){b=10;//a=20;//}}:classA{intx;staticinty;}classB{publicvoidfunc();{A.x=10;//A.y=20;//}}7.:privateprotectedpublic8.final:final9.abstract:abstractabstract10.:BABbAaAab11.:3.CheckboxItemEvent:15.:implementsabstractpublicvoidreturn91.:4,()2.:JVMCPUCPUCPUsleep(intmillsecond)CPUwait()CPU/3.run()start():run()start()4.isAlive()false:isAlive()falsefalse.5.:ThreadThread(Runnabletarget)RunnableThreadrun()6.:setPriority(intgrade)0-10int7.:8.wait()notify()notifyAll():wait()notifyAll()9.9.14:while(3):if(3):while,if10.interrupt():interrupt():InterruptedException:interrupt()1FileInputSreamFileOutputStreamFileInputSream2FileOutputStreamread()FileReaderread()FileOutputStreamread0~255-1FileReaderread()0~65535Unicode-13BufferReader4ByteArrayOutPutStream5DataInputSreamDataOutputSreamDataInputStreamInputStreamininDataOutputStreamOutnputStreamoutoutJavaout6/111URL2URLURLInputStreamopenStream()URL4.SocketSocketsocketsocket5SeverSocketSocketSocket
本文标题:java2实用教程课后习题答案(第三版简单题)
链接地址:https://www.777doc.com/doc-8695649 .html