一、2016-08-19 转载自http://swiftlet.net/archives/1900
其实,很多人对于基础知识掌握的并不好。什么是基础知识呢,下面二十道题目就是基础,可以检测一下基础知识是否掌握的扎实:
(1)T和的区别?的用法?
(2)Proxy类和InvocationHandler接口的关系?
(3)注解继承自那个类?
(4)类加载的委托机制是通过什么算法实现的?
(5)\0表示什么?
(6)String的存储方式有哪些是什么?
(7)char使用多少字节存储?存储编码方式是什么?
(8)String temp=”hello world”; 这行代码在class文件中是如何存储实现过程?
(9)JDK中反编译class文件的命令是什么?
(10)什么是泛型的类型推断?
(11)如何重置异常的信息?
(15)面向接口编程思想与面向对象编程思想的区别?
(16)new的用法?
(17)二级缓存的实现?
(18)读下面的代码回答问题:
public synchronized E peek()
{
int len = size();
if (len == 0)
{
throw new EmptyStackException();
}
return elementAt(len - 1);
}
为什么len==0的时候不返回null呢,而是要抛出异常,其背后的设计思想?
(19)为什么要使用线程上下文类加载器?
(20)证明一下,在计算机中:a+b+c不等于c+b+a
二、2016-08-19
转载自:
(1)http://blog.csdn.net/jackfrued/article/details/44921941
(2)http://blog.csdn.net/lygscg123/article/details/21517925
(3)http://blog.csdn.net/qq_25827845/article/details/50768822
(4)http://blog.chinaunix.net/uid-26930580-id-4138849.html
(5)http://www.cnblogs.com/lanxuezaipiao/p/3371224.html