![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Java
大哥您好
这个作者很懒,什么都没留下…
展开
-
Java多态中重写private函数
Pitfall: “overriding” private methodsHere’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 · 810 阅读 · 0 评论 -
Java‘s regular expressions
Creating regular expressionsYou 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 · 402 阅读 · 0 评论 -
Summary of "Holding Your Objects"
SummaryJava 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 · 504 阅读 · 0 评论 -
Java多态中重写static函数
Pitfall: fields and static methodsOnce 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 · 569 阅读 · 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 · 390 阅读 · 0 评论 -
Java类初始化顺序
前言 最近在看《Thinking In Java》,看到有关初始化顺序的时候有些迷茫,然后写了一个小示例程序求证了一下,如有不妥,请指出。原创 2016-02-25 15:48:37 · 569 阅读 · 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 · 658 阅读 · 0 评论 -
Java private类构造函数笔记
前言 最近在看Android源码的时候遇到了private类构造函数,于是写了一个测试小程序,帮助理解。代码class TestPrivate { private TestPrivate() { System.out.println("TestPrivate constructor"); } static TestPrivate mInstance;原创 2016-04-19 09:45:39 · 743 阅读 · 0 评论