Working principle analysis of Lombok

You will find that in the process of using Lombok, you only need to add corresponding annotations without writing any code for it. How does automatically generated code come into being? The core is the interpretation of annotations. JDK5 introduces... Read more
Lucky January 16th
0 comment

Callable and Future

Callable is very similar to Runnable. The main difference is that Callable can return the result and throw an exception. The implementation of Callable requires the support of Future implementation class. Read more
Lucky January 15th
0 comment

The relationship between thread number setting and CPU number

Generally speaking, we think that the experience size of thread pool should be set like this: (where N is the number of CPU), if it is CPU intensive application, then the line pool size is set to N+1, if it is IO intensive application, then the thread pool is large. Read more
Lucky January 15th
0 comment

Is there any difference between count (1) and count (*) in SQL?

Count () for InnoDB, it needs to read data from disk and accumulate count; and MyISAM engine has the total number of rows of a table on disk, so count is executed. Read more
Lucky January 14th
0 comment

Java characteristics

Encapsulation, inheritance, polymorphism, I do not write, Java foundation, which I have not forgotten about robustness, security, interpretability and cross platform robustness (Lu Bangxing): mainly checking exceptions, some exceptions when writing code, J... Read more
Lucky January 13th
0 comment