Java IO byte stream

summary What is IO? IO is what I / O stream means. Based on memory, it can be divided into input and output, that is to say, the flow to memory is the input flow and the output flow out of memory. Input stream: read data from hard disk to memory for use Output stream: write data in memory to hard disk for saving The table above is the top-le ...

Posted on Sun, 31 May 2020 04:50:49 -0700 by Possum

JVM in-depth understanding - memory tuning and GC logging

CPU Tall Analysis Generally available ps -Lfp pid ps -mp pid -o THREAD, tid, time top -Hp pid [root@redis webapps]# top -Hp 22272 top - 10:09:30 up 9 days, 22:10, 1 user, load average: 0.00, 0.00, 0.00 Tasks: 30 total, 0 running, 30 sleeping, 0 stopped, 0 zombie Cpu(s): 0.0%us, 0.0%sy, 0.0%ni,100.0%id, 0.0%wa, 0.0%hi, 0.0%si, ...

Posted on Sun, 24 May 2020 17:24:29 -0700 by hubbardude

After programmers use IDEA plug-ins, office efficiency increases by 100% (continuous update)

IDEA some good plug-in sharing catalog IDEA some good plug-in sharing Plug in collection CamelCase Translation LiveEdit MarkDown Navigator Jrebel CheckStyle-IDEA Alibaba Java Coding Guidelines Ideavim Maven Helper FindBugs-IDEA GsonFormat Key promoter X .ignore JVM Debuger Memory View CMD Support Batch Scripts Support BashSupport Docker integ ...

Posted on Sun, 24 May 2020 06:03:04 -0700 by eddy666

JAVA Concurrent Programming Introduction, thinking about the realization philosophy behind synchronous lock

Multithreading is similar to preemptive multitasking processing in concept. The reasonable use of threads can improve the processing ability of the program, but it also brings disadvantages. For shared variable access, there will be security problems. Here is an example of multi-threaded access to shared variables: public class ThreadSafty { ...

Posted on Sat, 23 May 2020 02:53:17 -0700 by downfall

Java.lang.StringWhat exactly did the + operation do?

Author: Pz https://www.cnblogs.com/panzi/p/11956782.html In previous interviews, String was frequently visited. Here are a few general points of knowledge: String Constant Pool new String() The difference between ==and equals native methodString.intern() Although the interview was generally correct, I couldn't answer one of the que ...

Posted on Thu, 21 May 2020 19:54:34 -0700 by phpretard

The black pot of YYYY-MM-DD, we don't carry it!

Author: Tony rabbit https://zhuanlan.zhihu.com/p/101150248 Writing this blog post is a record of cross year bug s. Last year, the next group's partner calculated the number of days between two dates, because the calculation was wrong for cross year reasons. At that time, the little sister of the test group did not simulate this scenario, whi ...

Posted on Tue, 19 May 2020 00:14:16 -0700 by subasi

Deadlock in Java class loading? turn

source: Will Java class load deadlock? What's the situation?   1, Foreword First, post a test code. You can guess what the execution result will be import java.util.concurrent.TimeUnit; public class TestClassLoading { public static class A{ static { System.out.println("class A init"); try { ...

Posted on Sun, 17 May 2020 04:21:16 -0700 by foobar

Understanding of spring dynamic proxy (java)

Understanding of java Dynamic Proxy Proxy mode is one of the design modes and an important application in Java related frameworks.I am also a beginner, with my own opinions.Simply put, a proxy class that needs to be enhanced and a proxy class that is a real object will implement the same interface. The byte code file of the proxy class is gener ...

Posted on Sat, 16 May 2020 20:43:47 -0700 by agravayne

wait/notify mechanism for Java thread communication

Preface Java thread communication is the process of associating individual threads so that threads can communicate with each other.For example, thread A modifies the value of an object and then notifies thread B so that thread B knows the value modified by thread A, which is thread communication. <!-- more --> wait/notify mechanism One t ...

Posted on Fri, 15 May 2020 10:05:56 -0700 by ScoTi

Java programmers must master the four basic!

Probably everyone began to use Java when they were students. We have been learning Java, but there are always some unclear concepts in Java, no matter for junior or senior programmers. Therefore, the purpose of this article is to clarify these concepts. After reading this article, you will have a deeper understanding of these concepts, and you ...

Posted on Thu, 07 May 2020 20:35:18 -0700 by MerMer