![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
JAVA
雄性皮卡丘
。。
展开
-
Java中Reflection机制的初步理解(一)
ClassLoader的类加载机制Java中程序运行过程大致是由ClassLoader将class load到CodeSegment中,关联main方法执行,其中会有其他class不断load到内存,而不是一次性加载,即为动态加载机制。 我们可以用下面这段代码来观察。 public class TestDynamicLoading { public static void m原创 2016-02-10 16:59:23 · 326 阅读 · 0 评论 -
Java中Reflection机制的初步理解(二)
JDK内置ClassLoader的分类 Bootstrap Class Loader -implemented by native language -load the core classes of jdk Extension Class Loader -load the class from jre/lib/ext Application Class Loader -load the u原创 2016-02-10 17:41:08 · 327 阅读 · 0 评论 -
Java中Reflection机制的初步理解(三)
JDK中ClassLoader的层次关系ClassLoader在load class过程中会检查上一层loader是不是load过了,如果有,则不会再次load。安全性好,避免破坏性代码。 这个层次关系为AppClassLoader<-ExtClassLoader<-BootstrapClassLoader,不是继承。public class TestParentClassLoader {原创 2016-02-10 19:00:34 · 294 阅读 · 0 评论 -
121. Best Time to Buy and Sell Stock
LeetCode 121. Best Time to Buy and Sell Stock原创 2016-07-26 15:42:10 · 180 阅读 · 0 评论 -
hibernate5.2.0的BUG
在hibernate5.2.0对自建带外键的表操作时出现了报错: org.hibernate.tool.schema.spi.SchemaManegementException: Attempt to resolve foreign key metadata from JDBC metadata failed to find column mappings for foreign key nam原创 2016-07-27 01:00:38 · 304 阅读 · 0 评论 -
访问父类的父类的方法 | 笔试题
访问父类的父类的方法 | 笔试题原创 2016-09-22 22:49:31 · 513 阅读 · 0 评论 -
Element 'beans' cannot have character [children], because the type's content type is element-only
Element ‘beans’ cannot have character [children], because the type’s content type is element-only转载 2016-10-09 22:42:55 · 1235 阅读 · 0 评论 -
java.util.Date类型日期增减的方法
public static void main(String[] args) { Calendar c = Calendar.getInstance(); SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd"); c.set(Calendar.YEAR, 2013); c.set(Calendar.MONTH原创 2017-07-22 15:58:12 · 926 阅读 · 0 评论 -
String、Date、Calendar之间的转换
原博客地址 Calendar 转化 StringCalendar calendat = Calendar.getInstance(); SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd"); String dateStr = sdf.format(calendar.getTime()); ```String 转化Calendar ``转载 2017-07-22 16:28:17 · 436 阅读 · 0 评论