自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(8)
  • 资源 (1)
  • 收藏
  • 关注

原创 ArrayList源码解读(jdk1.7)

arraylist底层是有Object类型的数组构成的。源代码如下 /** * The array buffer into which the elements of the ArrayList are stored. * The capacity of the ArrayList is the length of this array buffer. Any

2018-05-23 15:09:37 219

原创 关于jdk中的AtomicInteger的操作

private static final Unsafe unsafe = Unsafe.getUnsafe();     private static final long valueOffset;     static {       try {         valueOffset = unsafe.objectFieldOffset             (Atomic

2018-05-23 15:09:21 332

原创 java对象在内存中的存储情况

java对象在内存中的存储情况: 对

2018-05-23 15:09:14 748

原创 关于jdk1.7中的ThreadLocal

1.get()方法 /**     * Returns the value in the current thread's copy of this     * thread-local variable.  If the variable has no value for the     * current thread, it is first initialized to the value

2018-05-23 15:09:02 624

原创 关于jdk1.7中的ThreadLocal

1.get()方法  /**      * Returns the value in the current thread's copy of this      * thread-local variable.  If the variable has no value for the      * current thread, it is first initialized to t

2018-05-23 15:08:30 558

原创 ForkJoinPool jdk1.7

ForkJoinPool是java.util.concurrent并发包下的一个类。这里只讨论 public ForkJoinTask submit(Callable task)的用法。ForkJoinTask实现了Future接口 实现Callable接口可以新建一个可以返回值的线程。返回的是一个Future。 通过调用ForkJoinPool中的submit方法,可以开启一个线程去执行,

2018-05-23 15:08:19 164

原创 Springmvc中的DispatcherServerlet粗略分析(springboot 1.4.0.RELEASE)

一.根据DispatcherServlet中的注释说明这个servlet用来调用handlers/controllers,springmvc中指的就是Controller,首先这个类对象初始化的时候会加载servlet使用到的所有组件  /** * This implementation calls {@link #initStrategies}. */ @Override protec

2018-05-23 15:08:04 1422

原创 jdk源码中for(;;)思考

1.for(;;)和while(true)区别在jdk1.7.0_55环境下没有区别,编译后的文件相同Code:       0: aload_0              1: dup                  2: getfield      #2                  // Field i:I       5: iconst_1             6: iadd  ...

2018-05-23 15:07:49 340

对象在jvm中的存储情况

java对象在jvm中的存储情况 jvm

2018-01-15

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除