【正文】
一致 class MyClass { . . . } 所保存的文件為 : 注意 : 大小寫敏感 簡單的 Java應(yīng)用程序 33 ? 注解方式 (Comments) 1. /** ~~~ */-文檔注解 2. /* ~~~ */ -程序內(nèi)的任意位置 3. //-對本行注解 /** * Exam1_1 class實(shí)現(xiàn)一個(gè)應(yīng)用 * 將特定的字符串顯示到標(biāo)注輸出 */ public class Exam1_1 { public static void main(String[] args) { (“This is a Java Application Program.)。 } } 31 ? 定義類文件 1. 關(guān)鍵詞 public -修飾符 2. 關(guān)鍵字 class-表示要定義一個(gè)類 (模板 ),包含數(shù)據(jù)變量和方法 3. 關(guān)鍵字 import-表示引入程序外部定義的類 /** * Exam1_1 class實(shí)現(xiàn)一個(gè)應(yīng)用 * 將特定的字符串顯示到標(biāo)準(zhǔn)輸出 */ import 。 Portable) 5. 魯棒和安全 (Robust amp。s Open Platform and Sun39。s largest developer conference), Enterprise JavaBeans technology 6. Aug 5, Java Media and Communication APIs released 7. Aug 5, More than 100,000 downloads of JavaBeans Development Kit software 8. Sep 23, Java Developer Connection program has 100,000+ members 12 Java的發(fā)展 ? 五年回顧 (1996- 2021) ? 1998年 1. Jan 20, JDK software release downloads top 2 million 2. Mar 24, JavaOne conference draws 15,000 3. Mar 31, Ericsson, Sony, Siemens, BEA, OpenTV and others license Java technology 4. June 3, Visa launches world39。1 Java語言程序設(shè)計(jì) 呂鳳翥 馬 皓 2 課程提綱 1. Java語言概述 2. Java語言語法基礎(chǔ) 3. 面向?qū)ο蟮奶卣? 4. Applet及其應(yīng)用 5. 圖形用戶界面設(shè)計(jì) 6. 異常 7. 線程 8. 集合操作 9. Java輸入 /輸出 10. 網(wǎng)絡(luò)編程 3 參考資料 ? Java語言程序設(shè)計(jì),呂鳳翥、馬皓編著,清華大學(xué)出版社 ? Java編程思想,第 2版,候捷譯,計(jì)算機(jī)科學(xué)叢書,機(jī)械工業(yè)出版社 ? The Java Tutorial, a practical guide for programmers, ? Thinking in Java, 2nd edition, Revision 11, 2021, Bruce Eckel, ? Thinking in Java, 3rd Edition Revision , Bruce Eckel ? The Java Language Specification, 2nd Edition, James Gosling, Bill Joy, Guy Steele, Gilad Bracha 4 第一章 Java語言概述 1. Java的發(fā)展 2. 什么是 Java? 3. Java程序介紹 4. Java程序運(yùn)行環(huán)境 5 Java的發(fā)展 ? 早期的歷史 1. 1991年, Sun Microsystems公司建立“ the Green Project”(Secretly), 13個(gè)成員,目的開發(fā)消費(fèi)電子類產(chǎn)品市場 (嵌入式設(shè)備 ),初始選擇 C++語言 2. 1992年夏天, *7設(shè)備,運(yùn)行在一種全新的、對立于處理器的語言 ?“ Oak”,潛在的市場 ?有線電視 3. Green Team?FirstPerson Team(70人 ),電視機(jī)頂盒/videoondemand,市場不成熟 ? ? ? ? 4. James Gosling, Bill Joy, and Eric Schmidt … ? “why not the Inter? 5. 在 Mosaic瀏覽器的基礎(chǔ)上開發(fā)“ WebRunner”,“ HollywoodmeetsSiliconValley”的兩個(gè)演示 (3D動(dòng)態(tài)分子、線排序 ) 6 Java的發(fā)展 ? 早期的歷史 6. Java面世 ? 1995年 3月, “ ” 7/8份二進(jìn)制拷貝,“ ”源代碼公布在 Inter ? 下載數(shù)量和反饋郵件劇增 ? On May 23, 1995, John Gage, director of the Science Office for Sun Microsystems, and Marc Andreessen, cofounder 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 world39。s portal to the In