`
zjupw
  • 浏览: 3096 次
  • 性别: Icon_minigender_1
  • 来自: 杭州
最近访客 更多访客>>
社区版块
存档分类
最新评论
文章列表
An activity is an component that provides a window with which user can interact. The window typically fills the whole screen, or may float on top of other windows.   An application usually consists of multiple activities, one as the main activity and can start other activities based on the user act ...
Application Fundamentals   Android applications are written in Java programming language, compiled into a *.apk file     Each application is assigned an unique Linux User ID by default, which is unknown to itself.  Each application runs in its own process and has its own virtual machine(Dalvik ...
泛型方法和构造函数    class Box<T> { private T t; <S> Box(S s) { } } Box<Integer> a = new Box<Integer>("hello"); Box<Integer> b = new <String>Box<Integer>("hello"); Box<Integer> c = new Box<>("world ...
1. 初始化   instance variable:在声明时简单赋值,构造函数,initializer block(暂时不知道这种风格好不好),method(effective java提倡final method,暂时未看)。java编译器会把initializer block插入每个构造函数中      class variable: 用static block或者static method提供同样功能的初始化。提倡使用static method,可重用。     2. 嵌套类 用于类分组,封装和可读可维护性   分static嵌套类和内部类(非static),可 ...
Global site tag (gtag.js) - Google Analytics