File tree Expand file tree Collapse file tree 1 file changed +20
-3
lines changed Expand file tree Collapse file tree 1 file changed +20
-3
lines changed Original file line number Diff line number Diff line change 158
158
1 . Java 中异常怎么处理,什么时候抛出,什么时候捕获;
159
159
- 一般原则是提早抛出,延迟捕获
160
160
- 出现异常时,若当前无法处理则抛,否则捕获异常,尝试恢复。
161
- 1 . 说一说对java io 的理解
161
+ 1 . 说一说对 java io 的理解
162
+ - Java 的 I/O 操作类在包 java.io 下,大概有将近 80 个类,但是这些类大概可以分成四组,分别是:
163
+ 1 . 基于字节操作的 I/O 接口:InputStream 和 OutputStream
164
+ 1 . 基于字符操作的 I/O 接口:Writer 和 Reader
165
+ 1 . 基于磁盘操作的 I/O 接口:File
166
+ 1 . 基于网络操作的 I/O 接口:Socket
162
167
1 . 知不知道 NIO
163
- 1 . IO 哪个类可以 Byte 转 String。
168
+ - 三个特点:
169
+ 1 . Channels and Buffers // 通过 Channels 访问 Buffers
170
+ 1 . Non-blocking IO // 非阻塞 IO
171
+ 1 . Selectors // 单线程,监控 nultiple Channels
164
172
1 . 说下 IO 模型。
173
+ - 整个Java I/O模型,大致可以分为三类:
174
+ - BIO:JDK1.4 之前的阻塞 IO
175
+ - NIO:JDK1.4 及以后的版本,非阻塞 IO
176
+ - AIO:JDK1.7 之后,又叫 NIO.2,异步 IO
165
177
1 . Java 锁机制
166
178
1 . 重入锁、对象锁、类锁的关系
167
179
1 . 哪些方法实现线程安全?
584
596
1 . [ 服务器集群负载均衡原理?] ( https://www.zhihu.com/question/22610352 )
585
597
1 . [ 负载均衡的基本算法] ( http://www.cnblogs.com/shanyou/archive/2012/11/09/2763272.html )
586
598
1 . [ 可扩展的分布式数据库架构] ( http://blogread.cn/it/article/1945?f=wx )
587
- 1 . [ 分布式缓存系统Memcached实践] ( http://www.jianshu.com/p/e5b11670c3bb )
599
+ 1 . [ 分布式缓存系统Memcached实践] ( http://www.jianshu.com/p/e5b11670c3bb )
600
+ 1 . [ 深入分析 Java I/O 的工作机制] ( https://www.ibm.com/developerworks/cn/java/j-lo-javaio/ )
601
+ 1 . [ 怎样理解阻塞非阻塞与同步异步的区别?] ( https://www.zhihu.com/question/19732473 )
602
+ 1 . [ Java I/O 模型的演进] ( http://www.importnew.com/21383.html )
603
+ 1 . [ java I/O 模型简述] ( http://haoran-10.iteye.com/blog/2311266 )
604
+ 1 . [ Java NIO Tutorial] ( http://tutorials.jenkov.com/java-nio/index.html )
You can’t perform that action at this time.
0 commit comments