1、 使用两种方式写出SingleTon.
2、 简单绘制出Sun Hotspot VM的内存结构。并简单说明各自的作用。
3、 实现一个用于生产者-消费者模式的队列。假设队列的固定长度为10,FULL的时候只能消费不能生产,EMPTY的时候只能生产不能消费。
4、 调用A线程的interrupt方法,其在什么情况下会抛出InterruptException(不考虑网络IO的情况)
5、 Sevlet容器如何使用cookie跟踪回话?response.encodeURL(URL)什么情况下生效?
6、 DOM与SAX方式解析XML文件的原理?各自适用的场景是什么?
7、 将一个byte值转化为int值为什么要与0Xff进行&运算?
8、 类A在工程中的路径为F:/Development/source-code/opensource/Practice/src/com/lee/prac/A.java,
编译后的路径为:F:/Development/source-code/opensource/Practice/classes/com/lee/prac/A.class,
请问下列语句分别打印出什么?另外,new File("相对路径");中的相对路径是相对于什么的路径?
System.out.println(A.class.getResource("").getPath());
System.out.println(A.class.getResource("/").getPath());
System.out.println(Thread.currentThread().getContextClassLoader().getResource("").getPath());
基础知识
最新推荐文章于 2021-08-02 07:45:20 发布