/** * 假設A,B兩個線程同時運行。但A需要某項前置條件必須滿足(data數組裝滿)後才可以正常運轉。 這裡讓B線程去為滿足A的條件去幹活。 */public class SYN {int[] data = new int[100];final Object lock = new Object();public SYN() {new Thread(new A()).start();new Thread(new B()).start();}privateclass A implements
http://hi.baidu.com/pjww/blog/item/01741d7fa563210a28388a95.html import java.io.*;import java.util.*; public class Main { public static void main(String args[]) throws
今天在某公司(不透露了)寫了一套Java面試題。有個題大概是這樣的。 Which design pattern used in Java.lang.Runtime? 就是說java.lang.Runtime裡,用了什麼設計模式 還有java.utils.collection裡用了什麼設計模式。 當時由於對這冷門知識瞭解的不夠多,而且api也讀的少,所以一時答不上來。 回到家搜了下。 答: Runtiome裡 單例模式。
(一)、What is ArcGIS Engine? ArcGIS Engine is a complete library of embeddable geographic information system (GIS) components for developers to build custom applications. Using ArcGIS Engine, developers can embed ArcGIS functions into other
Overview 1.1 What is Servlet? A servlet is a web component, managed by a container, that generates dynamic content. Servlets are small, platform independent Java classes compiled to an architecture neutral bytecode that can be loaded
F5:setp into (可用於跳入某個特定的方法) F6:step over(用於跳過程式中的每一行代碼) F7:step return(跳出當前的方法回到程式的開始處) watch:觀察變數或運算式的值 resume:跳到下一斷點(如果沒有下一個,則運行完整個程式) drop to frame:跳到當前方法的第一行 斷點注意的問題: 1.斷點調試完後,要在breakPoints視圖中清除所有的斷點