Chinaunix首页 | 论坛 | 博客
  • 博客访问: 33950
  • 博文数量: 7
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 66
  • 用 户 组: 普通用户
  • 注册时间: 2015-03-27 14:06
个人简介

好记性不如记博客

文章分类

全部博文(7)

文章存档

2015年(7)

我的朋友

发布时间:2015-04-16 16:33:22

位运算Bitwise:位运算符包括: 与(&)、非(~)、或(|)、异或(^)  &:当两边操作数的位同时为1时,结果为1,否则为0。如1100&1010=1000      | :当两边操作数的位有一边为1时,结果为1,否则为0。如1100|1010=1110      ~:0变1,1变0&nbs.........【阅读全文】

阅读(1482) | 评论(0) | 转发(0)

发布时间:2015-04-15 17:22:57

Member variables in a class—these are called fields.Variables in a method or block of code—these are called local variables.Variables in method declarations—these are called parameters.fields : class中的变量 local variables : 方法中的变量parameters : 方法中的参数.........【阅读全文】

阅读(1639) | 评论(0) | 转发(0)

发布时间:2015-04-15 16:58:04

oracle官网文档: http://docs.oracle.com/javase/tutorial/java/javaOO/nested.htmlNested Classes的好处 (A class只被 B class访问时) 1. 增强class逻辑组织,B class包含A class2. 增强代码封装,A class隐藏与外面的世界3. 利于阅读代码和维护代码Nested Classes 分为 static nested class 和 inner class(Non.........【阅读全文】

阅读(1147) | 评论(0) | 转发(0)
给主人留下些什么吧!~~
留言热议
请登录后留言。

登录 注册