NIO使用频道来衔接数据结点,在处理数据时,NIO可让你设定缓冲区容量,在缓冲区中对感兴趣的数据区块进行标记,像是标记读取位置、数据有效位置,对于这些区块标记,提供了·Clear()
、rewind()
、flip()
、compact()
等高级操做。html
NIO2文件系统API提供一组标准接口与类,应用程序开发者只要基于这些标准接口与类进行文件系统操做,底层实际如何进行文件系统操做,是由文件系统提供负责。java
java.util.logging包提供了日志功能相关类与接口,使用日志的起点是logger类,Logger类的构造函数标示为protected,不是java.util.logging同包的类不能直接以new建立,不准使用Logger的静态方法。git
Logger与Handler默认都会先依据Level过滤信息,若是没有作任何修改,取得的Logger实例之父Logger组态就是Logger.GLOBAL-LOGGER-NAME空间名称Logger实例的组态。正则表达式
在程序中使用表示式,必须先针对规则表示式作剖析、验证等动做,肯定规则表示式语法无误,对字符串进行比较。api
java.util.regex.Pattern
实例是规则表示式在JVM中的表明对象,Pattern的构造函数被标示为private,必须经过Pattern的静态方法compile()来取得。app
Matcher()还有replaceAll()方法,能够将符合规则表示式的部分以指定的字符串取代。函数
问题:正则表达式的用法?学习
解答:本题我在百度上找到了合适的答案..net
一、vi中哪条命令是不保存强制退出?设计
A .:wq
B .:wq!
C .:q!
D .:q
答案是a
2.下面哪些Linux 命令能够ASCII码和16进制单字节方法输出Hello.java的内容?
A .od -b -tx1 Hello.java
B .od -tcx1 Hello.java
C .od -tc -tx1 Hello.java
D .od -tbx1 Hello.java
答案是b,c
3.JDK8中定义的通用函数接口,从行为上分为()类型:
A .Consumer
B .Function
C .Predicate
D .Supplier
答案是a,b,c,d
4.DK8 中新时间API中,用于度量时间的类有()
A .Instant
B .Duration
C .Period
D .LocalDateTime
答案是a,d
5.Java 8以前,对日期进行运算,使用()类。
A .Date
B .DateFormat
C .Calendar
D .SimpleDateFormat
答案是c
6.When applied to instance variables, the ________________ visibility modifier enforces encapsulation(当应用到实例变量时,____可见性修饰符强制执行封装).
A .static
B .final
C .public
D .private
E .none of the above(以上都不是)
答案是a
7.Which of the following method headers is most likely a header for a mutator method?(如下哪一个方法头部最有多是设值方法的头部?
A .public int getAge()
B .public double computeSalary()
C .public Person()
D .public void setAge(int newAge)
E .none of these are headers for a mutator method(以上均不是设值方法的头部)
答案是d
8.Which of the following objects could contain the information “eastern standard time”?(下面哪些类的对象会包含“东部标准时间”的信息)
(Choose all that apply.)
A .Instant
B .LocalDate
C .LocalDateTime
D .LocalTime
E .ZonedDateTime
答案是e
9.Which of the following are stored in a Period object? (Choose all that apply.) 下面哪些内容会出如今Period对象中?
A .Year
B .Month
C .Day
D .Hour
E .Minute
F .Second
答案是a,b,c
代码行数(新增/累积) | 博客量(新增/累积) | 学习时间(新增/累积) | 重要成长 | |
---|---|---|---|---|
目标 | 5000行 | 16篇 | 400小时 | |
第二周 | 40/100 | 1/2 | 8/20 | |
第三周 | 100/150 | 1/3 | 18/26 | |
第四周 | 465/605 | 1/4 | 23/49 | |
第五周 | 527/1132 | 1/5 | 35/84 | |
第六周 | 1044/ 2176 | 1/6 | 60/144 | |
第七周 | 306/2482 | 1/7 | 35/179 | |
第八周 | 407/2889 | 1/8 | 51/230 |