摘要: 1. Weak references: In computer programming, a weak reference is a reference that does not protect the referenced object from collection by a garbage 阅读全文
posted @ 2016-09-16 08:14 whaochen 阅读(145) 评论(0) 推荐(0) 编辑
摘要: 1. How would you write a socket client/server in Java The Client side: 2. Main Differences Betwen Java NIO and IO: IO NIOStream oriented Buffer orient 阅读全文
posted @ 2016-09-14 03:00 whaochen 阅读(193) 评论(0) 推荐(0) 编辑
摘要: 1. HashMap vs HashTable vs ConcurrentHashMap 1). Thread -Safe : ConcurrentHashMap is thread-safe that is the code can be accessed by single thread at 阅读全文
posted @ 2016-09-14 01:09 whaochen 阅读(127) 评论(0) 推荐(0) 编辑
摘要: Mutexes, ReadWriteLock, ArrayBlockingQueue, Thread pools, LinkedList vs ArrayList, Object Pooling, Read-Modify-Write, java.util.concurrent, java.util. 阅读全文
posted @ 2016-09-13 23:04 whaochen 阅读(118) 评论(0) 推荐(0) 编辑
摘要: 1.Implement a thread-safe (blocking) queue: 2. Memory consistency effects: As with other concurrent collections, actions in a thread prior to placing 阅读全文
posted @ 2016-09-13 00:14 whaochen 阅读(122) 评论(0) 推荐(0) 编辑
摘要: 1. Dependency Injection Answer: Any application is composed of many objects that collaborate with each other to perform some useful stuff. Traditional 阅读全文
posted @ 2016-09-12 23:20 whaochen 阅读(121) 评论(0) 推荐(0) 编辑
摘要: 标签: 前端学习笔记 今天开始学习react.js特开这一篇随笔作为react的学习笔记,主要记录看到的重点内容和自己的心得感想: 一. 基本组件和方法 1.reactjs引入了一个虚dom的概念,对于每一个dom点都会存在一个状态,如果这个dom上的属性发生了改变,在react中如果发生了变化:首 阅读全文
posted @ 2016-09-12 04:29 whaochen 阅读(172) 评论(1) 推荐(0) 编辑
摘要: Design Patterns (Factory, Abstract Factory, singleton, DAO, Proxy): 1. Factory: In Factory pattern, we create object without exposing the creation log 阅读全文
posted @ 2016-09-10 07:19 whaochen 阅读(155) 评论(0) 推荐(0) 编辑
摘要: 标签: 动态规划 题目描述: There are a row of n houses, each house can be painted with one of the k colors. The cost of painting each house with a certain color i 阅读全文
posted @ 2016-09-10 04:54 whaochen 阅读(171) 评论(0) 推荐(0) 编辑
摘要: 标签: 动态规划 描述: Find the contiguous subarray within an array (containing at least one number) which has the largest product. Find the contiguous subarray 阅读全文
posted @ 2016-09-10 00:47 whaochen 阅读(223) 评论(0) 推荐(0) 编辑