下载本文档
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、/ NetMeeting - -conf / IP - -TCP/IP-ipconfig cd dir d: - - - - Path Path Pathavi classpath1Java java-class-ClassLoader(lazy load- (verifier- (interpreter JVM (Compile Once, Run Anywhere Garbage Collector (GC classpath path classpath JVM . java class ×××× HelloWorld one public cla
2、ss in a java file zero or many non-public classin a java file public class name = file name Error Compile Time Error Runtime Error 1 24 google5 BBS6 teacher2boolean true false char Unicode utf-16 / /16 byte short int( long float double(default BigDecimal code - data - stack - heap - new boolean byte
3、 short char int int - long - float - double ( +-*/% + - > < >= <= = != & | ! && | &1 1 | 1 1 1 >> /2 << *2 >>> = += -= + String String x ? y : z if 3if (. ; for(.;.;. while . do while ( ; break continue 1! + 2! + + 10! 1.100 3 101.200 switch case brea
4、k12 copy34 main Fab41 2 3 polymophism, dynamic bind, late bind, runtime bind java class Java class JDK class%JAVA_HOME%/jre/lib/xxx.jar (rt.jar new new5void ClassLoader 1 find class using classpath 2 lazy load TestBirthdate TestCircle * : TestCircle 1 2 3 4 5 6 modifier 7 TestPoint 1: contains 2: 3:
5、 4 Point public boolean containedBy(Circle c return c.containts(this; 1 2 3 4 this this this6setclasspath=%classpath%;D:share01_J2SEjavachapter_3 testpackage echo %classpath%12 1 23 * ( JDK5.07classpath ( xx.java xx.class class package class classpath class classpath classpath classpath jar setclass
6、path=%classpath%;xxxx/xxxx/xxx/xx.jar classpath "." classpathjava.lang rt.jar classpath * access modifiers private default/package protected public class inner class public default/package public private protected default private 50% public 30-40 protected 5-10 extends java C+ java interfa
7、ce C+ copy /Annotation Annotation Override8Override super- super + ( Super ( this( * : Teacher Person * : Student Person Object JavaDocs APIApplication Programming Interface finallize JNI java native interface equals " " String s = newString("aaa" hashCodeinstanceof toString( has
8、hCode hashCode hashCode clone(deep-copy light-copy getClass Class ClassLoader Load Class class9instanceof a instanceof XX a XX XX (polymophism dynamic binding, late bind, runtime bind (extensibility Game/Test.java 1 2 3 4 * final final final final abstract method and class abstract method abstract m
9、ethod abstact class Abstract class cant be instantiated abstract interface public static final public abstract implements Valuable.java interface i public static final , ac ac i10demeter11catch catch finally throw throws throws printStackTrace ( / Java src / src.zip Exception RuntimeException ( Runt
10、imeException NullPointerException 12 java API TestDateSort.java Comparable 3 1 1. 5. 13 3 TestArgs * * 2. 1 6. 192.38 3. 4. API String StringBuffer StringBuilder StringBuffer StringBuilder 2 Math Enum interface 14 Map 1 3 public static final int L = 1; Collection Set List Collection c = new ArrayLis
11、t( Hash equals hashCode ByteArrayOutputStream InputStreamReader / OutputStreamWriter DataInputStream / DataOutputStream PrintStream / PrintWriter ObjectInputStream / ObjectOutputStream 18 Implements runnable /(recommended Extends Thread / / / / Isalive run Set get priority Start Stop Join Sleep getN
12、ame Yield sychronized dead lock TestDeadLock.java live lock producer consumer wait notify notifyAll / ProducerConsumer.java while if class A synchronized m1(; m2(; synchronized m3(; Aa 1:a.m1 a.m3 ( m1 wait m3 2:a.m1 a.m2 wait sleep wait wait sleep 19 TCP/IP IP TCP/UDP Socket TCPSocket BindException talkserver talkclient UDP * TestUDPServer TestUDPClient 20 Component Container Window Panel Frame Dialog Frame Panel Frame new vs extends Frame(Recommended FlowLayout Panel GridLayout BorderLayout Frame / Button ActionEvent TextField ( Window * TFMath : graphics paint paint MyMouseA
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 外卖配送骑手安全培训课件
- 制造企业网络等保合规建设方案
- 建设工程安全管理规程
- 商业综合体弱电系统施工方案
- 烟气余热回收设备维护保养制度
- 学生身高体重监测实施方案
- 校园运动伤害防护实施方案
- 基层医疗机构药事管理工作规范
- 乳制品生产车间管理制度
- 年产xx吨食品检测服务中心项目可行性研究报告
- 雨课堂在线学堂《职业探索与选择》作业单元考核答案
- 应急知识图谱构建-洞察及研究
- 2025届上海市高考英语考纲词汇表
- 奇妙的降落伞课件
- 电梯特种作业证考试试题及答案
- 精英制模有限公司制模手册
- 通信工程建设标准强制性条文汇编(2023版)-定额质监中心
- 摊位简易租赁合同模板
- 高等传热学全册课件
- 公司治理课程设计
- 水电站蓄水安全鉴定设计自检工作报告
评论
0/150
提交评论