ImageVerifierCode 换一换
格式:DOC , 页数:20 ,大小:68.50KB ,
资源ID:3180367      下载积分:20 文钱
快捷下载
登录下载
邮箱/手机:
温馨提示:
快捷下载时,用户名和密码都是您填写的邮箱或者手机号,方便查询和重复下载(系统自动生成)。 如填写123,账号就是123,密码也是123。
特别说明:
请自助下载,系统不会自动发送文件的哦; 如果您已付费,想二次下载,请登录后访问:我的下载记录
支付方式: 支付宝    微信支付   
验证码:   换一换

加入VIP,省得不是一点点
 

温馨提示:由于个人手机设置不同,如果发现不能下载,请复制以下地址【https://www.wenke99.com/d-3180367.html】到电脑端继续下载(重复下载不扣费)。

已注册用户请登录:
账号:
密码:
验证码:   换一换
  忘记密码?
三方登录: QQ登录   微博登录 

下载须知

1: 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。
2: 试题试卷类文档,如果标题没有明确说明有答案则都视为没有答案,请知晓。
3: 文件的所有权益归上传用户所有。
4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
5. 本站仅提供交流平台,并不能对任何下载内容负责。
6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

版权提示 | 免责声明

本文(java 程序设计 编程 实例 大全 深入 一.doc)为本站会员(11****ws)主动上传,文客久久仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。 若此文所含内容侵犯了您的版权或隐私,请立即通知文客久久(发送邮件至hr@wenke99.com或直接QQ联系客服),我们立即给予删除!

java 程序设计 编程 实例 大全 深入 一.doc

1、java 程序设计 编程 实例 大全 深入 一public class FloatTestpublic static void main(String args)float f=1.2f;float s=1.3F;float t=(float)1.4;System.out.println(f+“n“+s+“n“+t);public class ReturnTestpublic static void main(String args)ReturnTest rt=new ReturnTest();rt.method(2);/ return;public void method(int a)if(

2、a3) System.out.println(+a);System.out.println(+a);public class ReferenceTestint a=4;public static void main(String args)ReferenceTest rt1=new ReferenceTest();ReferenceTest rt2=new ReferenceTest();rt1.a=5;System.out.println(rt1.a+“n“+rt2.a);rt2=rt1;rt1.a=5;System.out.println(rt1.a+“n“+rt2.a);public c

3、lass Peopleint age;public void change1(int i)i+;public void change2(People p)p=new People();p.age+;public void change3(People p,int i)p.age+;i+;public static void main(String args)People people=new People();int a=0;/*people.change1(people.age);System.out.println(people.age);*/*people.change2(people.

4、age);System.out.println(people.age);*/people.change3(people,people.age);System.out.println(people.age);public class Child extends Parentpublic Child()super(1);System.out.println(“Child“);public static void main(String args)Child child=new Child();class Parentpublic Parent(int i)System.out.println(“p

5、arent1“);public Parent()System.out.println(“parent2“);public class ParamTestpublic void changePoint(Point point)/ Point point=new Point();point.x=3;point.y=4; public static void main(String args)ParamTest pt=new ParamTest();Point point=new Point();pt.changePoint(point);System.out.println(point.x+“n“

6、+point.y);class Pointint x;int y;public class ParamTest2public static void main(String args)C c=new C();int a=1;c.changeInt(a);System.out.println(a);class Cvoid changeInt(int a)a+;public class ParamTest3public void change(Person person1,Person person2)person1.name=“li si“;person2.name=“wang wu“;publ

7、ic static void main(String args)Person person1=new Person();person1.name=“zhang san“;Person person2=new Person();/Person person2=person1;ParamTest3 test=new ParamTest3();test.change(person1,person2);System.out.println(person1.name+“n“+person2.name);class PersonString name;public class OverloadTestpu

8、blic int add(int a,int b)return a+b;public int add(int a,int b,int c)return a+b+c;public static void main(String args)OverloadTest test=new OverloadTest();int r1=test.add(1,2);int r2=test.add(1,2,3);System.out.println(r1+“n“+r2);public class OverloadTest2public int method(int a,int b)System.out.prin

9、tln(a+b);return 1; public boolean method(int a)System.out.println(a);return false;public static void main(String args)OverloadTest2 test=new OverloadTest2();int result1 = test.method(1,2);boolean result2 = test.method(3);public class ConstructorOverloadpublic ConstructorOverload()this(3);System.out.println(“test“);public ConstructorOverload(int i)System.out.println(+i);public static void main(String args)ConstructorOverload col1=new ConstructorOverload();ConstructorOverload col2=new ConstructorOverload(2);public class ConstructorTest

Copyright © 2018-2021 Wenke99.com All rights reserved

工信部备案号浙ICP备20026746号-2  

公安局备案号:浙公网安备33038302330469号

本站为C2C交文档易平台,即用户上传的文档直接卖给下载用户,本站只是网络服务中间平台,所有原创文档下载所得归上传人所有,若您发现上传作品侵犯了您的权利,请立刻联系网站客服并提供证据,平台将在3个工作日内予以改正。