随笔分类 -  Java related

related issues' learning
摘要:Difference between "==null" and ".equals(null)" == reference compare; .equals() is a method; notification: while sample = null; sample.equals(null) wi 阅读全文
posted @ 2016-01-25 15:45 GAN_REPLACE 阅读(116) 评论(0) 推荐(0)
摘要:自动打包 && 自动拆包 sample ArrayList = new ArrayList(); list.add(3); int i = list.get(0);3会被自动打包成Integer类型,随后被自动拆包为int型。Tips: 这里处理定长的数组类型,ArrayList... 阅读全文
posted @ 2015-07-20 16:53 GAN_REPLACE 阅读(182) 评论(0) 推荐(0)
摘要:Java中不区分变量的声明和定义,但变量的声明和定义本质上却是有区别的。变量的定义:定义一个全新的变量,包括分配资源;变量的声明:声明一个已经有的变量,只是作为引用的一个说明(C和C++中使用的关键字是extern)。 阅读全文
posted @ 2015-05-04 14:56 GAN_REPLACE 阅读(156) 评论(0) 推荐(0)
摘要:tomcat启动日志目录:$TOMCAT_HOME/logs/catalina.out 但是如果server.xml本身有问题使得logger未被启用,则不会找到任何相关的日志;tomcat用户设定:$TOMCAT_HOME/conf/tomcat-users.xml中在tomcat-users这个tab中加入和注释中相应格式相同的一行或多行内容,视添加用户数目而定。 tomcat用户类别:admin, manager, tomcat(系统默认权限), role1; that surrounds them.--> --> 阅读全文
posted @ 2014-02-22 09:33 GAN_REPLACE 阅读(981) 评论(0) 推荐(0)