JAVA语言程序设计-前言.ppt

上传人:牧羊曲112 文档编号:6510206 上传时间:2023-11-07 格式:PPT 页数:37 大小:533.50KB
返回 下载 相关 举报
JAVA语言程序设计-前言.ppt_第1页
第1页 / 共37页
JAVA语言程序设计-前言.ppt_第2页
第2页 / 共37页
JAVA语言程序设计-前言.ppt_第3页
第3页 / 共37页
JAVA语言程序设计-前言.ppt_第4页
第4页 / 共37页
JAVA语言程序设计-前言.ppt_第5页
第5页 / 共37页
点击查看更多>>
资源描述

《JAVA语言程序设计-前言.ppt》由会员分享,可在线阅读,更多相关《JAVA语言程序设计-前言.ppt(37页珍藏版)》请在三一办公上搜索。

1、JAVA语言程序设计,张晋豫,课程安排,平时成绩 30%考勤:点名和课堂问答上机练习期中测验?期末成绩 70%考试类型:闭卷上机安排地点:计算学院四层机房时间:前一次课程通知,教材马迪芳等!清华/北京交通大学出版社提高教材JAVA核心(第二版本)SUN MICROSYSTEMS JAVA丛书,课程提纲,参考资料,“Java程序设计与应用技术教程”,黄斐编著,21世纪高等院校计算机技术教学丛书(3),北京希望电子出版社“Java程序设计”,唐大仕编著,北方交通大学出版社/清华大学出版社“Java语言与面向对象程序设计”,印旻编著,清华大学出版社“Java 2 参考大全”,Herbert Schi

2、ldt,有中译本,清华大学出版社,参考资料,进一步参考The Java Tutorial,a practical guide for programmers,Thinking in Java,2nd edition,Revision 11,2000,Bruce Eckel,Thinking in Java,3rd Edition Revision 4.0,Bruce Eckel“Java编程思想”,第2版,候捷译,计算机科学丛书,机械工业出版社The Java Language Specification,2nd Edition,James Gosling,Bill Joy,Guy Steel

3、e,Gilad Bracha,第一讲 JAVA概述,JAVA的发展什么是JAVA?JAVA程序介绍JAVA程序运行环境,JAVA的发展,早期的历史1991年,Sun Microsystems公司建立“the Green Project”(Secretly),13个成员,目的开发消费电子类产品市场(嵌入式设备),初始选择C+语言1992年夏天,一种全新的、对立于处理器的语言“Oak”,产品*7设备,潜在的市场有线电视Green TeamFirstPerson Team(70人),电视机顶盒/video-on-demand,市场不成熟?James Gosling,Bill Joy,and Eric

4、 Schmidt“why not the Internet?(WWW&Internet)在Mosaic浏览器的基础上开发“WebRunner”浏览器,“Hollywood-meets-Silicon-Valley”的两个演示(3D动态分子、线排序),JAVA的发展,早期的历史Java面世1995年3月,“1.0a”7/8份二进制拷贝,“1.0a2”源代码公布在Internet下载数量和反馈邮件剧增On May 23,1995,John Gage,director of the Science Office for Sun Microsystems,and Marc Andreessen,cof

5、ounder and executive vice president at NetscapeTM,stepped onto a stage and announced to the SunWorld audience that JavaTM technology was real,it was official,and it was going to be incorporated into Netscape NavigatorTM,the worlds portal to the Internet.,JAVA的发展,历史记录-Who,James Gosling:Green Team ori

6、ginal,FirstPerson employee,original member Java Products Group,lead engineer and keyarchitect of Java technology,Bill Joy:Cofounder and vice president,Sun Microsystems,Inc.,principal designer of the University of California,Berkeley,version of the UNIX operating system,Eric Schmidt:Former Sun Micros

7、ystems chief technical officer,Former Novell chairman and CEO,Chairman of the Board and CEO,Google Inc.,JAVA的发展,历史记录,*7:A new SPARC based,handheld wireless PDA,with a 5 color LCD with touchscreen input,JAVA的发展,一些比较C语言1978年Brian Kernighan和Dennis Ritchie发表The C Programming Language,1989年12月美国国家标准化组织(A

8、NSI)制定了C语言的标准C+语言1979年Bjarne Stroustrup发明了带类的C(C with Class),1983年改名为C+,1997年11月标准化Java语言1992年Jame Gosling等发明了原型Oak语言,1995年正式公布,目前标准化工作正在进行中JCP(Java Community Process),JAVA的发展,五年回顾(19962000)1995年May 23,Java technology launched 1996年Jan 23,JDK 1.0 software releaseMay 29,first JavaOne developer confer

9、ence(JavaBeans,Java Media APIs,servlets,etc)July 10,50,000 people attend Sun Java Day in TokyoAug 16,Sun/Addison-Wesley(The Java Tutorial and the first Java Language Specification)Sep,83,000 Web pages have incorporated Java technologyOct 25,Sun announces first Just-In-Time(JIT)compiler for Java plat

10、formOct 29,Java Card API announcedDec 9,JDK 1.1 beta software released,JAVA的发展,五年回顾(19962000)1997年Feb 18,JDK 1.1 release shipsMar 4,Java Web Server beta and Java Servlet Developers Kit software releasedMar 10,Java Naming and Directory Interface(JNDI)API introducedMar 11,More than 220,000 downloads o

11、f JDK 1.1 software in just three weeksApr 2,JavaOne conference(10,000 attendees,the worlds largest developer conference),Enterprise JavaBeans technologyAug 5,Java Media and Communication APIs releasedAug 5,More than 100,000 downloads of JavaBeans Development Kit softwareSep 23,Java Developer Connect

12、ion program has 100,000+members,JAVA的发展,五年回顾(19962000)1998年Jan 20,JDK 1.1 software release downloads top 2 millionMar 24,JavaOne conference draws 15,000Mar 31,Ericsson,Sony,Siemens,BEA,OpenTV and others license Java technologyJune 3,Visa launches worlds first smart card based on Visas Open Platform

13、and Suns Java Card technologyNov 5,Sun works with Linux Community on Java 2 software port to LinuxDec 8,Java 2 platform ships,JAVA的发展,五年回顾(19962000)1999年Jan 13,Major consumer electronics manufacturers support Java technology for digital televisionFeb 24,Java 2 platform source code releasedMar 4,XML

14、support for Java platform unveiledMar 27,Java HotSpot performance engine unveiledJune 2,JavaServer Pages technology unveiledJune 15,JavaOne developer conference draws 20,000June 15,Sun announces three editions of Java platform:J2SE,J2EE,J2MEJune 29,J2EE Reference Implementation Alpha shipsAug 25,J2S

15、E version 1.3 beta software releasedAug,The JavaPhone API specification included in an approved GSM standard by the European Telecommunications Standards Institute,JAVA的发展,五年回顾(19962000)1999年Sep 30,J2EE beta software releasedDec 8,J2EE platform shipsDec 8,J2SE platform on Linux ships2000年Apr 19,J2EE

16、 platform licensed to Art Technology Group,BEA Systems,Compaq,Hitachi,SilverStream,Sybase,.May,Membership in Java Developer Connection program tops 1.5 millionMay 8,Sun to work with Chinese TV industry to define interactive digital TV spec for China TVMay 8,J2SE v.1.3 platform releasedMay 17,J2SE v

17、1.3 platform gains industry support from Apple with Mac OS X,JAVA的发展,新的发展(2000之后),JAVA的发展,JAVA的发展,JAVA的发展,JAVA的发展,http:/,第一讲 JAVA概述,JAVA的发展什么是JAVA?JAVA程序介绍JAVA程序运行环境,什么是JAVA?,JAVA Technology编程语言(Programming Language)运行平台(Platform),什么是JAVA?,JAVA编程语言的特点简单(Simple)面向对象(Object oriented)解释性(Interpreted)平台

18、独立和可移植(Architecture neutral&Portable)鲁棒和安全(Robust&Secure)多线程(Multithreaded)分布式(Distributed)高性能(High performance)动态(Dynamic),JAVA编程语言的特点简单(Simple)快速学习,具有C/C+相类似的语法Java不存在指针面向对象(Object oriented)注重于数据和操作数据的方法,而不是流程class类是数据和操作数据的方法的集合类是层次化结构解释性(Interpreted)Java编译器生成字节码,Java解释器执行字节码链接过程简单,仅仅将新的类装载(load)

19、入运行环境,什么是JAVA?,JAVA编程语言的特点平台独立(Architecture neutral)和可移植(Portable)Java编译器产生的字节码(bytecode)可运行在异种网络环境中(不同的硬件系统和不同的操作系统)Java程序在不同的平台中行为一致,不存在数据类型的不一致等现象,什么是JAVA?,JAVA编程语言的特点鲁棒(Robust)和安全(Secure)可靠的语言:compile-time checking和run-time checking内存管理简单,“new”构造对象,对象释放(automatic garbage collection)网络环境的应用不会被产生入

20、侵行为,为Java程序构造一个个(Sandbox),什么是JAVA?,JAVA编程语言的特点多线程(Multithreaded)例:浏览器应用中,播听音乐/拖动页面/后台下载页面线程类:等原语支持:synchronized、wait()、notify()分布式(Distributed)支持网络应用,.*HTTP应用:URL类TCP应用:Socket类、ServerSocket类UDP应用:DatagramSocket类、DatagramPacket类,什么是JAVA?,JAVA编程语言的特点高性能(High performance)解释性的语言,没有C语言快“Just-In-Time”JIT编

21、译器,在运行时将Java字节码转变为机器码Java HotSpot Compilers动态(Dynamic)Java语言在执行的链接(link)阶段是动态的class类仅在需要时被链接被链接的代码模块可以有不同的来源,从本地或从网络,什么是JAVA?,平台(Platform)程序运行的硬件和软件环境CPU、硬盘、内存、显卡、声卡、网卡等操作系统:Windows、MacOS、UNIX(Linux/AIX/Solaris/HPUX)操作系统与硬件的结合JAVA运行平台(Platform)JAVA虚拟机(JVM:Java Virtual Machine)Java解释器Java开发工具或可运行appl

22、et的Web浏览器 JAVA应用编程接口(Java Application Programming Interface,Java API),什么是JAVA?,JAVA运行平台(Platform)J2SE Platform(Java 2 Standard Edition)Java Runtime Environment(JRE)Java虚拟机、库函数、运行Java应用程序和Applet所必须文件Java 2 SDK(Development Kit)JRE的超集,包含编译器和调试器等用于程序开发的文件JAVA虚拟机、JAVA应用编程接口和系统平台的关系,什么是JAVA?,JAVA平台的发展Java

23、 Development Kit1.1.1 1.1.6 Java 2 SDK1.4.0 1.4.1 http:/JAVA平台的扩展三个版本(1999.6)J2SE:Core/DesktopJ2EE:Enterprise/ServerJ2ME:Mobile/Wireless,什么是JAVA?,J2SETM Platform Roadmap,Kestrel Cricket Merlin Hopper Mantis Tiger,quoted from Suns 2002 Worldwide Java Developer Conference,Sun ERC 2003,3 million,150 mi

24、llion,400 million,680,150,J2EE,JAVA可以做什么?基本:Objects,strings,threads,numbers,input and output,data structures,system properties,date and time等 Applets应用网络/Web应用:URL/TCP/UDP,JSP/Servlets国际化应用:实现程序的本地化,并以适当的语言显示安全应用:电子签名、公钥和私钥管理、访问控制和用户证书等软件构件:JavaBeans对象串行化:实现远程方法执行(Remote Method Invocation,RMI)Java数据

25、库连接(Java Database Connectivity,JDBC):提供统一的方式访问关系型数据库,什么是JAVA?,为什么选择JAVA?快速上手(Get started quickly)写较少的代码(Write less code)写更好的代码(Write better code):garbage collection(防止内存泄漏),面向对象、JavaBeans构件机制、其他API复用代码,减少bugs开发程序更快(Develop programs more quickly)避免平台依赖性(Avoid platform dependencies with 100%Pure Java)编写一次,随处运行(Write once,run anywhere)machine-independent bytecodes发布软件更容易(Distribute software more easily):指对软件的更新,利用动态加载功能,一处改动,自动更新,不用重新编译整个程序,什么是JAVA?,

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > 生活休闲 > 在线阅读


备案号:宁ICP备20000045号-2

经营许可证:宁B2-20210002

宁公网安备 64010402000987号