
Interview
magic_dreamer
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
摘:JAVA面试题目(一)
JAVA面试题目(一)水平一流,但往往栽在基础知识的问题上1、final,finally,finalize的区别final--修饰符(关键字)如果一个类被声明为final,意味着该类断子绝孙,不能被继承。将变量或方法声明为final,可以保证它们在使用中不被改变。被声明为final的变量必须在声明时给定初值,而在以后的引用中只能读取,不可修改。finally-异常处理时...原创 2010-01-05 10:14:08 · 101 阅读 · 0 评论 -
Interview(7)Map and Hash Table
Interview(7)Map and Hash TableMap - (key, value)java.util.Map interfacepublic class MapDLNode implements Map { private List list; private EqualityTester tester; public MapDL...原创 2017-07-21 06:10:32 · 109 阅读 · 0 评论 -
Interview(6)Priority Queue
Interview(6)Priority QueuePriority QueueKey and Value => Entrypublic interface Entry{ public Object getKey(); //get the key values public Object setKey(Object k); public...原创 2017-07-15 04:41:57 · 112 阅读 · 0 评论 -
Interview(5)Binary Tree
Interview(5)Binary TreeBinary Treepublic class BinTreeNode implements BinTreePosition { protected Object element; // item in this node protected BinTreePosition parent; //parent ...原创 2017-07-06 04:23:03 · 101 阅读 · 0 评论 -
Interview(4)Sequence Iterator and Tree
Interview(4)Sequence Iterator and TreeSequencepublic interface Sequence extends Vector, List {}public class SequenceDLNode extends ListDLNode implements Sequence { protected void checkR...原创 2017-06-30 00:34:22 · 105 阅读 · 0 评论 -
Interview(3)Vector List
Interview(3)Vector ListStack and Queue are special sequences. Stack - insert, remove and access only apply to top itemQueue - remove and access only apply to top item, insert apply to bottom i...原创 2017-06-21 04:06:23 · 115 阅读 · 0 评论 -
Interview(2)Stack and Queue
Interview(2)Stack and QueueStackLast-in-first-out LIFOPush put one item into the stack, Pop get one item out of the stackSome popular example will be the browser back and editor undo...原创 2017-06-13 04:15:13 · 108 阅读 · 0 评论 -
Interview(1)Algorithm Book
Interview(1)Algorithm BookChapter 1 AlgorithmBasic SortingA[0.. n-1], 0=0outputs: 2 * 2 * 2 …r{ if(r = 0) return 1; if(r is odd) return 2 * sqr(Power((r-1)/2)); else ...原创 2017-06-09 04:37:07 · 156 阅读 · 0 评论 -
Mysql Database Event and Procedure(1)MySQL Event
Mysql Database Event and Procedure(1)MySQL EventCheck Event Switch>show variables like '%scheduler%';event_scheduler OFForevent_scheduler ONStart the event>SET GLOBAL event_sched...原创 2016-12-07 03:42:38 · 117 阅读 · 0 评论 -
Algorithm Basic(1)Algorithm in Java
Algorithm Basic(1)Algorithm in Java 1. BasicTime O(1), O(n), O(n^2), O(n^3), O(2^n)Storage array is set, it is fast, but the length is set.Collection —List can have repeat objects —A...原创 2014-10-02 12:20:12 · 156 阅读 · 0 评论 -
Search and Parse Keyword(1)JACKSON for JSON and Jsoup for URL Fetch
Search and Parse Keyword(1)JACKSON for JSON and Jsoup for URL Fetch1. Using jackson to mapping the JAVA Object and JSONpackage com.sillycat.analyzerjava.service.impl; import java.io.IOException; ...原创 2014-09-23 07:13:24 · 114 阅读 · 0 评论 -
Compiler Principle(2)Go and NodeJS
Compiler Principle(2)Go and NodeJSReferences:go yacchttp://golang.org/cmd/yacc/http://stackoverflow.com/questions/8422146/go-how-to-create-a-parserhttps://github.com/tenntenn/golang-samples/tree/maste...原创 2014-08-06 22:10:18 · 139 阅读 · 0 评论 -
JAVA基础(一)equals和==和hashCode
JAVA基础(一)equals和==和hashCode根据网上内容摘录堆(heap)和栈(stack)的区别堆存储: heapstorage 堆存储分配: heapstorage allocation 堆存储管理: heap storage management栈编址: stack addressing 栈变换:stack transformation 栈存储...原创 2010-06-07 22:32:08 · 90 阅读 · 0 评论 -
ThreadLocal笔记
ThreadLocal笔记网上搜索的结果,实践验证后记录早在JDK 1.2的版本中就提供java.lang.ThreadLocal,ThreadLocal为解决多线程程序的并发问题提供了一种新的思路。ThreadLocal并不是一个Thread,而是Thread的局部变量,也许把它命名为ThreadLocalVariable更容易让人理解一些。当使用ThreadLocal维...原创 2010-01-05 10:15:46 · 94 阅读 · 0 评论 -
摘:JAVA面试(四)
摘:JAVA面试(四)1、RDBMS关系数据库管理系统 Relational DataBase Management System。主要的关系数据库管理系统产品是:Oracle,IBM的 DB2和微软的SQL ServerSQL Server只能运行在Windows操作系统中。MySQL(5.0版本,2005年10月发布),才支持存储过程、触发器和其他功能。当前版本确实...原创 2010-01-05 10:15:23 · 124 阅读 · 0 评论 -
摘:JAVA面试题目(三)
JAVA面试题目(三)1、两个对象值相同(x.equals(y) == true),但却可有不同的hash code,这句话对不对? 不对,有相同的hash code2、当一个对象被当作参数传递到一个方法后,此方法可改变这个对象的属性,并可返回变化后的结果,那么这里到底是值传递还是引用传递? 是值传递。Java 编程语言只由值传递参数。当一个对象实例作为一个参数被传递到方法...原创 2010-01-05 10:14:58 · 98 阅读 · 0 评论 -
摘:JAVA面试题目(二)
JAVA面试题目(二)1、error和exception有什么区别?error 表示恢复不是不可能但很困难的情况下的一种严重问题。比如说内存溢出。不可能指望程序能处理这样的情况。exception 表示一种设计或实现问题。也就是说,它表示如果程序运行正常,从不会发生的情况。2、List, Set, Map是否继承自Collection接口? List,Set是 ...原创 2010-01-05 10:14:35 · 92 阅读 · 0 评论 -
Interview(8)Dictionary and Tree
Interview(8)Dictionary and TreeDictionary - No Orderpublic class DictionaryDLNode implements Dictionary { private List list; //store all items private EqualityTester tester; pub...原创 2017-07-28 04:22:34 · 102 阅读 · 0 评论