差異處
這裏顯示兩個版本的差異處。
java:basic [2020/06/03 22:45] tony [Debug] |
java:basic [2023/06/25 09:48] |
||
---|---|---|---|
行 1: | 行 1: | ||
- | {{tag>java}} | ||
- | ====== Basic ====== | ||
- | Java基礎問題分享。 | ||
- | ===== Article List ===== | ||
- | * [[.:basic:typeDef|型態定義]] | ||
- | * [[.:basic:MemoryLeakWithProperties|使用Properties類別的Memory Leak]] | ||
- | * [[.:basic:inputStreamReaderEncoding|InputStreamReader Encoding問題]] | ||
- | * [[.:basic:dateformat|DateFormat]] | ||
- | * [[.:basic:string|String]] | ||
- | * [[.:basic:systemprop|System Properties]] | ||
- | * [[.:basic:reusefulretry|可重複使用的Retry]] | ||
- | * [[.:basic:jconsole|JConsole]] | ||
- | * [[.:basic:string_intern|Synchronized with String intern]] | ||
- | * [[.:basic:URLConnection|在使用URLConnection上的問題]] | ||
- | * [[.:basic:findJarLocation|找尋某類別的jar檔位置]] | ||
- | * [[.:basic:collection:case-insensitive-collection|Case-insensitive Collection]] | ||
- | * [[.:basic:exception:try-with-resource|Try-With-Resources]] | ||
- | * [[.:basic:converter|Converter]] | ||
- | * [[.:basic:close_systemin_of_scanner|Close the System.in of the Scanner]] | ||
- | * [[.:basic:classloader:duplicate_class_def_error|Classloader Error: attempted duplicate class definition for name]] | ||
- | * [[.:basic:networking:resolve_host_cache_on_suse|在SUSE上Resolve Host Cache的問題]] | ||
- | * [[.:basic:process:parameter_with_double_quotes|Launch a process with a parameter has double quotes]] | ||
- | * [[.:basic:exception:files_move_throw_unexpect_AccessDeniedException|Windows上移動檔案發生非預期的AccessDeniedException]] | ||
- | * [[.:basic:httpURLConnection:readBlockingIssue|Read Blocking of the HttpsURLConnection]] | ||
- | * [[.:basic:queue:NotificationBufferWithDelayQueue|NotificationBuffer With DelayQueue]] | ||
- | ===== Sub-Category ===== | ||
- | * [[.:basic:eclipse|Eclipse]] | ||
- | * [[.:java8|Java 8]] | ||
- | * [[.:java_regular_expression|Java Regular Expression]] | ||
- | ===== Resource ===== | ||
- | * [[http://www.javaranch.com/journal/2003/04/immutable.htm|Mutable VS Immutable Object]] | ||
- | * [[https://sites.google.com/a/mis.nsysu.edu.tw/cheng-shi-zi-xun-wang/home|國立中山大學程式諮詢網]] | ||
- | * [[http://www.riehle.org/computer-science/industry/2000/jr-2000-method-properties.pdf|Method Properties in Java]] | ||
- | * [[http://faisalferoz.wordpress.com/2007/12/24/loop-vs-systemarraycopy/|Loop VS System.arraycopy]] | ||
- | * [[http://devchina.wordpress.com/2012/05/10/java%EF%BC%9A%E5%9C%A8windows%E9%87%8C%E5%AE%9E%E7%8E%B0%E5%BF%AB%E9%80%9F%E6%88%AA%E5%9B%BE/|在windows上透過java截圖]] | ||
- | * [[https://answers.launchpad.net/sikuli/+question/177954|透過AWT Robot螢幕截圖]] | ||
- | * [[http://stackoverflow.com/questions/1069066/get-current-stack-trace-in-java|Get current stack trace in java]] | ||
- | * [[http://stackoverflow.com/questions/13883293/turning-an-executorservice-to-daemon-in-java/29453160#29453160|turning-an-executorservice-to-daemon-in-java]] | ||
- | * [[http://stackoverflow.com/questions/8890303/behavior-of-java-sockets-when-closing-output-stream|Behavior of Java sockets when closing output stream]] | ||
- | * [[http://stackoverflow.com/questions/326390/how-to-create-a-java-string-from-the-contents-of-a-file|how-to-create-a-java-string-from-the-contents-of-a-file?]] | ||
- | * [[http://stackoverflow.com/questions/1326682/java-replacing-multiple-different-substring-in-a-string-at-once-or-in-the-most|java-replacing-multiple-different-substring-in-a-string-at-once-or-in-the-most]] | ||
- | * [[https://wiki.debian.org/Java/Java8|Debian Wiki - Java8]] sun.security.x509.CertAndKeyGen has been moved to sun.security.tools.keytool package | ||
- | * [[http://www.javacreed.com/running-a-batch-file-with-processbuilder/|使用ProcessBuilder呼叫batch]] | ||
- | * [[http://puremonkey2010.blogspot.tw/2015/02/java-how-to-gracefully-handle-sigkill.html|Hook for the process killed signal]] | ||
- | * [[http://journal.thobe.org/2013/02/jvms-and-kill-signals.html|JVM and Kill Signals]] | ||
- | * [[http://www.ithome.com.tw/node/83808|易讀的參數設計]] | ||
- | * [[http://www.ctolib.com/topics/61570.html|java实现清理DNS Cache的方法]] | ||
- | * [[http://blog.sina.com.cn/s/blog_5921e4020101gf9z.html|Google首席软件工程师Joshua Bloch谈如何设计一款优秀的API]] [[https://www.youtube.com/watch?v=heh4OeB9A-c|vedio]] | ||
- | * [[https://www.javatpoint.com/|javapoint]] | ||
- | * [[https://stackoverflow.com/questions/7509905/java-lang-stackoverflowerror-while-using-a-regex-to-parse-big-strings|使用regular expression處理長字串出現stackoverflowerror]] | ||
- | * [[https://stackoverflow.com/questions/11952274/how-can-i-create-keystore-from-an-existing-certificate-abc-crt-and-abc-key-fil|pem to jks]] | ||
- | * [[https://stackoverflow.com/questions/64038/setting-java-locale-settings|Setting java locale settings]] | ||
- | * [[https://stackoverflow.com/questions/5241743/how-do-i-use-the-java-opts-environment-variable|How do I use the JAVA_OPTS environment variable?]] | ||
- | * [[https://stackoverflow.com/questions/11063102/using-locales-with-javas-tolowercase-and-touppercase|Using Locales with Java's toLowerCase() and toUpperCase()]] | ||
- | * [[http://www.enterpriseintegrationpatterns.com|Enterprise Integration Patterns]] | ||
- | * [[https://codepumpkin.com/use-private-constructor-java/|What is the use of private constructor in Java?]] | ||
- | * [[https://www.baeldung.com/java-check-string-number|How to check string number?]] | ||
- | * [[https://www.geeksforgeeks.org/stream-peek-java-examples/|Stream peek() in Java with examples]] | ||
- | * [[https://dzone.com/articles/extracting-a-private-key-from-java-keystore-jks|Extracting a Private Key From the Java Keystore (JKS)]] | ||
- | * [[https://shipilev.net/blog/2016/arrays-wisdom-ancients/|Collection.toArray(new T[0]) or Collection.toArray(new T[size]), that's the question]] | ||
- | ===== Debug ===== | ||
- | * [[https://www.baeldung.com/java-heap-dump-capture|Different Ways to Capture Java Heap Dumps]] | ||
- | * [[https://jianyuan.me/2018/08/02/jcmd-intro/|JVM问题定位的瑞士军刀——JCMD]] | ||
- | * [[https://www.jianshu.com/p/45415ebe0721|生成 Heap Dump 的几种方式]] | ||
- | * [[https://blog.csdn.net/renfufei/article/details/76350794|OutOfMemoryError系列(1): Java heap space]] | ||
- | ==== Network ==== | ||
- | * [[http://chenchendefeng.iteye.com/blog/461248|关于设置http响应头connection的作用]] | ||
- | * [[http://xuanzhui.iteye.com/blog/2312885|使用原生的HttpURLConnection库进行网络请求]] | ||
- | * [[https://blog.csdn.net/reckhou/article/details/6884879|Linux下connect函数:no route to host & timeout的区别]] | ||
- | ==== Concurrency ==== | ||
- | * [[http://venkateshcm.com/2014/05/How-To-Determine-Web-Applications-Thread-Poll-Size/|How To Determine Web Application Thread Pool Size?]] | ||
- | * [[https://www.infoq.com/articles/Java-Thread-Pool-Performance-Tuning|Tuning the Size of Your Thread Pool]] | ||
- | * [[https://docs.oracle.com/javase/tutorial/essential/concurrency/guardmeth.html|Guarded Blocks]] | ||
- | * [[https://docs.oracle.com/javase/8/docs/technotes/guides/concurrency/threadPrimitiveDeprecation.html|Java Thread Primitive Deprecation]] | ||
- | * [[https://zeroturnaround.com/rebellabs/fixedthreadpool-cachedthreadpool-or-forkjoinpool-picking-correct-java-executors-for-background-tasks/|FixedThreadPool, CachedThreadPool, or ForkJoinPool? Picking correct Java executors for background tasks]] | ||
- | ==== IO ==== | ||
- | * [[https://bugs.openjdk.java.net/browse/JDK-8204300|Files.move throws DirectoryNotEmptyException when moving directory across file system]] | ||
- | * [[https://github.com/elastic/elasticsearch/issues/24231|Cannot remove plugin from docker container]] | ||
- | * [[https://qsli.github.io/2017/11/04/java8-file-stream/|Resource leak of Files.list]] | ||
- | ==== Serialization ==== | ||
- | * [[https://my.oschina.net/noahxiao/blog/112759|Java序列化与JSON序列化大比拼]] | ||
- | * [[http://bluepopopo.iteye.com/blog/486548|什么是writeObject 和readObject?可定制的序列化过程]] | ||
- | * [[https://stackoverflow.com/questions/24547673/why-java-util-optional-is-not-serializable-how-to-serialize-the-object-with-suc|為什麼Optional不implement Serializable?]] | ||
- | ==== Reflection ==== | ||
- | * [[https://stackoverflow.com/questions/3301635/change-private-static-final-field-using-java-reflection|Change final field with reflection]] | ||
- | * [[http://www.cdchen.idv.tw/blog/cdchen/1060|ServiceLoader用法]] | ||
- | * [[https://stackoverflow.com/questions/492184/how-do-you-find-all-subclasses-of-a-given-class-in-java|How do you find all subclasses of a given class in Java?]] | ||
- | * [[https://github.com/ronmamo/reflections|reflections]] | ||
- | * [[https://github.com/atteo/classindex|classindex]] | ||
- | ==== Exception ==== | ||
- | * [[http://teddy-chen-tw.blogspot.tw/2011/05/checked-or-unchecked-exceptions-1.html|搞笑談軟工 - Checked or unchecked exceptions(1)]] | ||
- | * [[http://spirit-blog.logdown.com/posts/1120421|閒談軟體架構:例外處理]] | ||
- | * [[http://softwareengineering.stackexchange.com/questions/80318/checked-vs-unchecked-vs-no-exception-a-best-practice-of-contrary-beliefs|Checked vs Unchecked vs No Exception… A best practice of contrary beliefs]] | ||
- | * [[http://softwareengineering.stackexchange.com/questions/325295/why-are-checked-vs-unchecked-exceptions-called-the-controversy-in-oracle-java|Why are checked vs. unchecked exceptions called “the controversy” in Oracle Java tutorial?]] | ||
- | * [[http://www.javaworld.com/article/3142626/core-java/are-checked-exceptions-good-or-bad.html|Are checked exceptions good or bad?]] | ||
- | * [[https://www.ibm.com/developerworks/cn/java/j-jtp05236.html|處理interruptedException]] | ||
- | * [[http://www.yegor256.com/2015/10/20/interrupted-exception.html|What Do You Do With InterruptedException?]] | ||
- | * [[https://github.com/frohoff/jdk8u-dev-jdk/blob/master/src/share/classes/java/beans/Statement.java|XMLEncoder與XMLDecoder吃exception的元兇]] 必須要setExceptionListener | ||
- | * [[https://vanilla-java.github.io/2016/06/21/Reviewing-Exception-Handling.html|Reviewing Exception Handling]] | ||
- | * [[https://softwareengineering.stackexchange.com/questions/177806/decision-for-unchecked-exceptions-in-scala|scala沒checked exception的原因]] | ||
- | * [[https://www.ithome.com.tw/voice/103455|go的例外處理]] | ||
- | ==== AWT ==== | ||
- | * [[https://bbs.csdn.net/topics/10164199|JLable如何跳行?]] | ||