- 1、本文档共63页,可阅读全部内容。
- 2、有哪些信誉好的足球投注网站(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
服务理念中的“点点” ◆理解多一点 真情浓一点 ◆学习勤一点 品质高一点 ◆理由少一点 效率高一点 ◆处理问题灵活点 工作过程用心点 ◆对待同事宽容点 互相协作快乐点 * Copying Variables of Primitive Data Types and Object Types * Garbage Collection As shown in the previous figure, after the assignment statement c1 = c2, c1 points to the same object referenced by c2. The object previously referenced by c1 is no longer referenced. This object is known as garbage. Garbage is automatically collected by JVM. * Garbage Collection, cont TIP: If you know that an object is no longer needed, you can explicitly assign null to a reference variable for the object. The JVM will automatically collect the space if the object is not referenced by any variable. * The Date Class Java provides a system-independent encapsulation of date and time in the java.util.Date class. You can use the Date class to create an instance for the current date and time and use its toString method to return the date and time as a string. * The Date Class Example For example, the following code ? java.util.Date date = new java.util.Date(); System.out.println(date.toString()); displays a string like Sun Mar 09 13:50:19 EST 2003. * The Random Class You have used Math.random() to obtain a random double value between 0.0 and 1.0 (excluding 1.0). A more useful random number generator is provided in the java.util.Random class. * The Random Class Example If two Random objects have the same seed, they will generate identical sequences of numbers. For example, the following code creates two Random objects with the same seed 3. Random random1 = new Random(3); System.out.print(From random1: ); for (int i = 0; i 10; i++) System.out.print(random1.nextInt(1000) + ); Random random2 = new Random(3); System.out.print(\nFrom random2: ); for (int i = 0; i 10; i++) System.out.print(random2.nextInt(1000) + ); From random1: 734 660 210 581 128 202 549 564 459 961 From random2: 734 660 210 581 128 202 549 564 459 961 * Displaying GUI Components When you develop programs
您可能关注的文档
- (汇编)语言程序设计说明书.ppt
- (临床治疗)继发性甲旁亢.ppt
- 《C++开发GIS系统》第3章MFC应用程序框架.ppt
- 《C++语言程序设计·中国水利水电版》AB第9章_模板.ppt
- 《C语言程序设计与数据结构》第7章数组.ppt
- 《水利水电工程单元工程施工质量验收评定标准_地基处理与基础工程》(SL633—2012)解读.ppt
- 《陶庵梦忆序》教学设计(自己).ppt
- 1急诊室常见危重病抢救程序文件.ppt
- 3、现代通信机房的谐波处理和节能.ppt
- 3_精美大气创业融资计划书—泡泡堂PPT.ppt
- 货币供应增速创新低:中国2024年二季度金融形势分析.docx
- 20220527 2021中国生态环境状况.docx
- 市级财政项目支出绩效目标申报表、成本指标设置路径和参考案例.docx
- 南京(龙潭港区)—南京(龙潭站)—上海(洋山港区)集装箱铁水联运线路.pdf
- 西藏自治区水利工程建设项目标准勘察设计、工程总承包电子招标文件示范文本2024.docx
- 湖北省公路工程施工分包负面清单、公路工程施工分包合同、报审表、施工劳务合作合同(示范文本).docx
- 水利水电工程安全监测仪器(传感器)静态特性、指标计算、环境量、变形、渗流、力、应力应变及温度监测仪器安装考证表.docx
- 连云港(连云港区)—中亚(塔什干)新亚欧集装箱铁水联运线路.pdf
- 轨道交通衔接设施规划设计内容要求、车站分类、贵阳市轨道交通衔接设施配置要求.pdf
- 西藏自治区水利工程建设项目标准项目管理总承包电子招标文件示范文本2024.docx
最近下载
- 2024-2025学年高中思想政治必修1 中国特色社会主义统编版(部编版)教学设计合集.docx
- 员工培训---病理.ppt
- 2025年上海市数学高考一轮复习精讲精练 第10讲空间向量与立体几何(11类核心考点精讲精练)含详解.docx
- 养老院活动记录表(新版).doc VIP
- 二年级上学期数学基础知识《填空题》专项练习及一套完整答案.docx
- 建设工程质量资料管理.ppt VIP
- 酒店智能弱电系统工程设计模板.doc VIP
- 烟草种植气象服务规范.pdf VIP
- 2023上海高三二模优秀作文汇编.doc
- 第5 2课《学习工匠事迹,领略工匠风采》(课件)-【中职专用】高二语文同步精品课件(高教版2023·职业模块).pptx VIP
文档评论(0)