Value passing and reference passing in Java

... In my understanding, there are four main types of Java data: basic data types, encapsulation of basic data types, arrays, and classes. After doing a test, look at whether the three are passed as a method parameter or a reference. says my understanding of value passing and reference...


JAVA programming specification

... 一, programming protocol (1) The naming style 1.[mandatory] The naming in the code cannot start with an underscore or a dollar sign, nor can it end with a underline or a dollar sign. Counterexample: _name / name / n a m e / n a m e / n a m e name / name_ / name n a m e / n a m e / ​ n a...


CloseableHttpClient sets Timeout

... to set the timeout time of CloseableHttpClient Create a RequestConfig: RequestConfig defaultRequestConfig = RequestConfig . custom ( ) . setSocketTimeout ( 5000 ) . setConnectTimeout ( 5000 ) . setConnectionRequestTimeout ( 5000 ) . setStaleConnectionCheckEnabled ( true ) . build ( ) ;...


[LeetCode] 103. Binary Tree Zigzag Level Order Traversal

... 题 Given a binary tree, return the zigzag level order traversal of its nodes’ values. (ie, from left to right, then right to left for the next level and alternate between). For example: Given binary tree [3,9,20,null,null,15,7], 3 / \ 9 20 / \ 15 7 return its zigzag level order traversal...


Nginx's image server

... 1. Prepare two hosts ①192.168.124.128 Deploy Nginx, nginx.cong file events { worker_connections 1024; } http { upstream yj{ server 192.168.124.129:8001; } server{ listen 8088; location / { proxy_pass http://yj; } location ~ .*\.(htm|html|gif|jpg|jpeg|png|bmp|swf|ioc|rar|zip|txt|flv|mid...


Servlet static inclusion and dynamic inclusion

... 1, what is included? includes the Servlet container to include other web components (Jsp, Servlet, Html) and the resulting results into their own results. 2, why do I need to include it? The Servlet object is created by the Servlet container. The Service() method of the Servlet object...


Byte stream & character stream difference

... Byte stream is very similar to the use of character stream. Is there any other difference besides the difference in operation code? In fact, the byte stream itself does not use the buffer (memory) during operation, the file itself operates directly, and the character stream uses the...


Java object-oriented - package and permission modifier

... 1. Package and permission modifier 1.1 package overview java package, in fact, is the folder in our computer system, stored in the package Is a class file. 1.2 The declaration format of ...


A ten-year Java programmer's practice summary: I am more afraid of falling behind the

... 蓦然, I have been backstage since graduation, and I have been doing background development for ten years. In the past ten years, I have gained a lot of technical skills. Training, going abroad, big company experience, and many like-minded friends. But after careful consideration, I have...


Tomcat7 registered as a windows service

... tomcat registered to become a windows service, 1, go to the official website to download tomcat7 zip package. Note that with service.bat and tomcat7w.exe. 2, will download Tomcat7 is extracted to the local, administrator mode to open the command line. Jump to the downloaded tomcat path....