摘要: 1,MongoDB 的下载, 途径1:MongoDB 官网下载,正常安装。官网点击Community Server 无法点击下载<Maybe>. 途径2:http://dl.mongodb.org/dl/win32/x86_64 里面包含了MongoDB 所有版本,下载了win32/mongodb- 阅读全文
posted @ 2018-07-02 09:52 Chris,Cai 阅读(164) 评论(0) 推荐(0) 编辑
摘要: 1,HashMap 的数据结构 JDK 1.7 的数据结构 JDK 1.8的数据结构 2,Hashmap 的数据结构最小的单位是Node<k,V>, 是一个个键值对,从HashMap 遍历就可以看出来 static class Node<K,V> implements Map.Entry<K,V> 阅读全文
posted @ 2018-06-21 14:16 Chris,Cai 阅读(516) 评论(0) 推荐(0) 编辑
摘要: LinkedList的底层实现原理 LinkedList 底层数据结构为双向链表,链表结构,基于一个个链表节点Node 1,Inner Class 内部类 private static class Node<E>{ E item;//当前节点下的当前元素 Node<E> next;//下一个节点 N 阅读全文
posted @ 2018-06-19 16:36 Chris,Cai 阅读(1086) 评论(0) 推荐(0) 编辑
摘要: ArrayList的底层实现原理 阅读全文
posted @ 2018-06-07 16:37 Chris,Cai 阅读(582) 评论(0) 推荐(0) 编辑
摘要: List<Interface>1,List<E> extends Collection<E>,Collection<E> extends Iterable<E>2,List<E> 的常用的具体实现类:ArratList<E>,LinkedList<E> Map<Interface>1,Map<K,V 阅读全文
posted @ 2018-06-07 16:35 Chris,Cai 阅读(169) 评论(0) 推荐(0) 编辑
摘要: for-each 循环原理1,for-each 是在java5 之后出现的。for是java 上的一个关键字,在jdk 找不到任何for的底层实现的。是因为for的底层实现被封装到了编译器中。所以通过反编译大概能推理出for-each的实现原理。2,for-each 一般是用于集合类的遍历。一般的集 阅读全文
posted @ 2018-06-07 16:34 Chris,Cai 阅读(264) 评论(0) 推荐(0) 编辑
摘要: final 作用1,final 可以修饰类,代表这个类不能被继承,类里面的方法不能被重写。一般在设计之初, 只有明确知道这个类不会被继承或者出于安全的考虑,否则不会设计成final 类2,final 修饰方法,代表此方法不能被重写,方法锁定,无法修改3,fianl 修饰变量,如果修饰的是基本类型,代 阅读全文
posted @ 2018-06-07 16:33 Chris,Cai 阅读(176) 评论(0) 推荐(0) 编辑
摘要: static 作用1,static 修饰静态成员变量。当类被加载的时候,变量在内存中就会被分配空间。2, static 修饰静态方法。类的方法。静态方法只能访问静态成员方法,和静态成员变量, 因为非静态方法,非静态成员变量必须要在对象被创建之后才能被调用。所以,对象有可能并没有被创建。 3,stat 阅读全文
posted @ 2018-06-07 16:32 Chris,Cai 阅读(213) 评论(0) 推荐(0) 编辑
摘要: What is ctags? ctags -- Generate tag files for source code,which is a tool used for facilitating reading and facilitating writing. Installation in win 阅读全文
posted @ 2018-05-02 16:28 Chris,Cai 阅读(374) 评论(0) 推荐(0) 编辑
摘要: some tips for using vim in windows. 1,download the software vim and install it, you can go to the Official network and download the version of this so 阅读全文
posted @ 2018-04-27 14:29 Chris,Cai 阅读(470) 评论(0) 推荐(0) 编辑