06 2013 档案

frond end 找工作 随笔
摘要:What happens when you click on a link and get the web page? meaning what's the process behind that?anwser:1. Checks link's URL part. If not empty take that URL to be feteched.2. browser checks cache; if requested object is in cache and is fresh, skip to #93. browser asks OS for server's 阅读全文

posted @ 2013-06-30 05:03 brave_bo 阅读(247) 评论(0) 推荐(0)

abstract vs interface
摘要:interfaces can have no state or implementation,data members must be public final statica class that implements an interface must provide an implementation of all the methods of that interfaceabstract classes may contain state (data members) and/or implementation (methods)abstract classes can be inhe 阅读全文

posted @ 2013-06-13 08:10 brave_bo 阅读(277) 评论(0) 推荐(0)

How Garbage Collection Really Works
摘要:Java Memory ManagementJava Memory Management, with its built-in garbage collection, is one of the language’s finest achievements. It allows developers to create new objects without worrying explicitly about memory allocation and deallocation, because the garbage collector automatically reclaims memo 阅读全文

posted @ 2013-06-13 07:53 brave_bo 阅读(194) 评论(0) 推荐(0)

public private protected 区别
摘要:1、public:public表明該數據成員、成員函數是對所有用戶開放,所有用戶都可以直接進行調用2、private:private表示私有,私有的意思就是除了class自己之外,任何人都不可以直接使用,私有财产神圣不可侵犯嘛,即便是子女,朋友,都不可以使用。3、protected:protected对于子女、朋友来说,就是public的,可以自由使用,没有任何限制,而对于其他的外部class,protected就变成private。作用域 當前類 同一package 子孫類 其他packagepublic √ √ √ √protected √ √ ... 阅读全文

posted @ 2013-06-13 07:48 brave_bo 阅读(535) 评论(0) 推荐(0)

一个简单的死锁小程序
摘要:public class TestDeadLock implements Runnable{ public int flag = 1; static Object o1 = new Object(), o2 = new Object(); public void run() { System.out.println("flag=" + flag); if(flag == 1) { synchronized(o1) { try ... 阅读全文

posted @ 2013-06-13 07:29 brave_bo 阅读(221) 评论(0) 推荐(0)

[leetcode] Jump Game
摘要:Given an array of non-negative integers, you are initially positioned at the first index of the array.Each element in the array represents your maximum jump length at that position.Determine if you are able to reach the last index.For example:A =[2,3,1,1,4], returntrue.A =[3,2,1,0,4], returnfalse.// 阅读全文

posted @ 2013-06-11 15:45 brave_bo 阅读(352) 评论(0) 推荐(0)

导航