
java
ydl19
这个作者很懒,什么都没留下…
展开
-
ScheduledExecutorService scheduleWithFixedDelay and scheduleAtFixedRate
ScheduledExecutorService has 2 method to schedule a taskschedule with fixed delayschedule at fixed rateI was confused about delay and rate, they both require a time parameter. What's the dif...原创 2014-12-03 23:35:48 · 181 阅读 · 0 评论 -
Difference between matches() and find() in Java Regex Matcher
I am trying to understand the difference between matches() and find(). matches() tries to match the expression against the entire string and implicitly add a ^ at the start and $ at the end of y...原创 2014-12-11 14:21:44 · 138 阅读 · 0 评论 -
Java generic methond without any parameters
Regarding following class: We define a generic class, but we donot have a method to resolve the generic.public final class Event<T> { private T event; private Event() {}...原创 2014-12-15 10:34:25 · 117 阅读 · 0 评论 -
Java shut down hook
Runtime.getRuntime().addShutdownHook(Thread);Before JVM shut down, it will call each hook you added.原创 2014-12-15 11:02:47 · 130 阅读 · 0 评论