
Java
大哥您好
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Java多态中重写private函数
Pitfall: “overriding” private methods Here’s something you might innocently try to do: //: polymorphism/PrivateOverride.java // Trying to override a private method. package polymorphism; import翻译 2016-03-01 09:52:06 · 875 阅读 · 0 评论 -
Java‘s regular expressions
Creating regular expressions You can begin learning regular expressions with a subset of the possible constructs. A complete list of constructs for building regular expressions can be found in the JD翻译 2016-03-14 15:08:47 · 432 阅读 · 0 评论 -
Summary of "Holding Your Objects"
Summary Java provides a number of ways to hold objects: 1. An array associates numerical indexes to objects. It holds objects of a known type so that you don’t have to cast the result when you’re l翻译 2016-03-09 15:27:10 · 545 阅读 · 0 评论 -
Java多态中重写static函数
Pitfall: fields and static methods Once you learn about polymorphism, you can begin to think that everything happens polymorphically. However, only ordinary method calls can be polymorphic. For exa翻译 2016-03-01 10:04:12 · 612 阅读 · 0 评论 -
Java类实例化过程
To summarize the process of creating an object, consider a class called Dog: 1. Even though it doesn’t explicitly use the static keyword, the constructor is actually a static method. ...翻译 2016-02-24 22:42:16 · 423 阅读 · 0 评论 -
Java类初始化顺序
前言 最近在看《Thinking In Java》,看到有关初始化顺序的时候有些迷茫,然后写了一个小示例程序求证了一下,如有不妥,请指出。原创 2016-02-25 15:48:37 · 601 阅读 · 0 评论 -
Java 子类调用this笔记
前言 最近在看Android源码,遇到了有关this的一个问题,自己写了一个测试小程序帮助理解。 代码 class AllBase { void func() { System.out.println("AllBase func"); } } class TestBase extends AllBase { private AllBase mOut原创 2016-04-19 10:11:16 · 708 阅读 · 0 评论 -
Java private类构造函数笔记
前言 最近在看Android源码的时候遇到了private类构造函数,于是写了一个测试小程序,帮助理解。 代码 class TestPrivate { private TestPrivate() { System.out.println("TestPrivate constructor"); } static TestPrivate mInstance;原创 2016-04-19 09:45:39 · 823 阅读 · 0 评论