(1)类的生命周期包括了:加载(Loading)、验证(Verification)、准备(Preparation)、解析(Resolution)、初始化(Initialization)、使用(Using)、卸载(Unloading)七个阶段(2)当Java程序需要使用某个类时,JVM会确保这个类已经被加载、连接(验证、准备和解析)和初始化。(3)加载阶段:通过一个类的全限定名来获取此类的二进制字节流...
分类:
其他好文 时间:
2016-03-17 02:07:21
阅读次数:
144
理解:和提升字段正好相反,跟降低方法类似,就是把基类中,只有部分继承类需要用到的字段,降低到继承类自身去。 详解: 重构前代码: 重构后代码: 把 _resolution字段降低到继承类 BugTask中去。
分类:
其他好文 时间:
2016-03-17 00:01:44
阅读次数:
438
Following features of C++ are not there in Java. No pointers No sizeof operator No scope resolution operatorLocal variables in functions cannot be sta
分类:
编程语言 时间:
2016-03-16 07:13:57
阅读次数:
154
Overview 从Cocos2d-x 2.0.4开始,Cocos2d-x提出了自己的多分辨率支持方案,废弃了之前的retina相关设置接口,提出了design resolution概念。 3.0中有以下相关接口: Director::getInstance()->getOpenGLView()->
分类:
其他好文 时间:
2016-02-03 14:30:10
阅读次数:
162
统计访问页面数量,以分辨率进行排名 SELECT CONCAT(`height` , '*', `width`) AS `resolution` , COUNT(CONCAT(`height`, '*', `width`)) AS `total`
FROM `wifi_status_page`
GROUP BY CONCAT(`height`, '*', `width`)
ORDER...
分类:
数据库 时间:
2016-01-22 18:17:47
阅读次数:
219
一、简单的布局页面,直接通过meta标签和百分比实现;二、较为复杂的页面1.分辨率Resolution适配:js计算不同屏幕宽度。html元素宽高比和字体大小,元素之间的距离自适应,使用rem单位。通过计算屏幕不同的宽度来设置大小,从而计算rem,达到自适应;2.媒体查询:media query( ...
分类:
移动开发 时间:
2016-01-06 01:30:37
阅读次数:
2413
failure to transfer org.codehaus.plexus:plexus:pom:2.0.5 from http://repo.maven.apache.org/maven2 was cached in the local repository, resolution will ...
分类:
Web程序 时间:
2015-12-17 20:37:23
阅读次数:
4364
Cocos2d引擎为游戏开发者提供了屏幕适配策略(Resolution Policy)解决方案。使用方式1. 设置屏幕适配策略(Resolution Policy) 如果你还没有用过Resolution Policy,只需要在游戏载入过程完成之后(cc.game.onStart函数回调中),调用下....
分类:
Web程序 时间:
2015-12-13 18:47:49
阅读次数:
658
pom.xml报错:ArtifactTransferException: Failure to transfer... from.... cached in the local repository, resolution will not be reattempted until the upda...
分类:
编程语言 时间:
2015-12-11 20:31:27
阅读次数:
171
运行遇到的bugjava.lang.NoClassDefFoundError: Failed resolution of: Lcom/pingplusplus/android/PingppLog;首先,欢迎大家加入群521039620,android&go,Let's go!这几天被几个bug折磨的...
分类:
其他好文 时间:
2015-12-06 22:41:40
阅读次数:
141