`
mjgforever
  • 浏览: 5573 次
  • 性别: Icon_minigender_1
  • 来自: 武汉
最近访客 更多访客>>
社区版块
存档分类
最新评论
文章列表
1 package:the library unit    利用eclipse打包jar文件:1.在要生成jar的项目上右击,选择菜单上的Export(导出) ;2.导出类型选择Jar File ;3.选择或者输入生成路径;4. ......  1.1 Code organization  1.2 Creating unique package names  1.3 A custom tool library  1.4 Using imports to change behavior  1.5 Package caveat    2 Java access specifiers  2.1 Pac ...
1 Guaranteed initialization with the constructor    自动调用构造函数,给类中属性自动赋值。2 方法重载 Method overloading  方法重载主要是根据方法中参数的不同或者返回值的不同的几个同名方法。  2.1 Distinguishing overloaded methods  2.2 Overloading with primitives      匹配采用自动匹配的方式,就近原则。char有点不同,如果找不到匹配的,就采用int,如果没有就找long、float、double。  2.3 Overloading on retur ...
true and false if-else Iteration The comma operator Foreach syntax return break and continue The infamous "goto" switch 总结:本节主要学习控制语句。

Operator

优先级 Precedence赋值 AssignmentAliasing数学操作 Mathematical operators正负号 Unary minus and plus operators自动增减 Auto increment and decrementRelational operatorsLogical operatorsshort-circuitingLiteralsExponential notationBitwise operatorsshift operatorsTernary if-else operatorString operator + and +=Common pitf ...
利用引用操作对象 You manipulate objects with references    任何事物都看成对象,实际操作的标识只是对象的引用。    String s = "asdf";    String s = new String("asdf"); 数据存放位置 Where storage lives    Registers:处理器内部,速度最快。    The stack:处于RAM中,速度次于Registers。一般情况下,Java storage 处于stack,而对象的引用不在stack中。    The heap:处于RAM中, ...
Smalltalk 的五个基本特征:  任何事物都是对象;  程序是对象的集合,对象之间通过消息来通讯;  每个对象都有自己的内存;  每个对象都有类型;  特定类型的所有对象都可以接受相同的消息;Booch 的表述:对象有状态、行 ...
都说 Thinking In Java 是本好书,所以我也看看。下载的是电子版,不过还得感谢 Bruce Eckel 的贡献,没有他,我们也看不到如此精彩的著作,好好学习吧。不要辜负这本好书。
Global site tag (gtag.js) - Google Analytics