Tomcat's immortality, learning notes of four mainstream middleware integrated by Alibaba P8 boss
import java.io.Writer; import org.apache.catalina.Context; import org.apache.catalina.LifecycleException; import org.apache.catalina.startup.Tomcat;
public class EmbeddedTomcatEx {
public static void main(String[] args) throws LifecycleException,
InterruptedException, ServletException {
Tomcat tomcat = new Tomcat();
tomcat.se ...
Added by dewknight on Mon, 27 Dec 2021 23:22:24 +0200
Java interview real problem analysis is popular all over the network, 6
double 0.0
char \u0000,stay window The system parses spaces
String null
boolean false
4.10: once the array has allocated space, it can be used
4.11: array direct output, the output is the memory address
5.2D array usage
5.1: syntax of two-dimensional array declaration: data type [] [] array name; (recommended)
...
Added by astaroth on Mon, 27 Dec 2021 16:43:10 +0200
Java interview design pattern summary and case code demonstration
Java design pattern
Design pattern classification: design patterns are divided into three types, a total of 23
Create pattern
Singleton pattern, factory pattern, abstract factory pattern, prototype pattern, builder pattern
Structural model
Adapter mode, decorator mode, appearance mode, agent mode, bridge mode, assembly combination mode and ...
Added by Jem on Mon, 27 Dec 2021 06:48:48 +0200
Practical application of Java tree structure (balanced binary tree AVL tree, java development framework)
System.out.println("Height of right subtree:" + avlTree.getRoot().rightHeight());
System.out.println("root = " + avlTree.getRoot());
System.out.println("root.left = " + avlTree.getRoot().left);
System.out.println("root.left.left = " + avlTree.getRoot().left.left);
}
}
class AVLTree{ private SNode root; //Find nodes to delete ...
Added by hr8886 on Mon, 27 Dec 2021 05:52:20 +0200
[interview questions] Java Basics - Summary of common interview questions p3
Prepare for the internship and regularly summarize the interview questions of the regular exam. Let's cheer up! 🎯
Previous articles:
[interview questions] computer network - 10 common interview questions p1[interview questions] JVM - 10 common interview questions p1[interview questions] Java Concurrent part - 10 common interview question ...
Added by step on Sun, 26 Dec 2021 18:38:34 +0200
Android gradle concept and foundation, three years of experience in Java development
Text outline
1. What is gradle 2. The characteristics of groovy language and its relationship with java 3. Why is your apk packing so slow 4. How to use gradle programming to solve practical problems in work 5. Advanced usage of gradle (gradle multi-channel quick packaging plug-in)
text
1. What is gradle?
Let's take a look at the expla ...
Added by Radon3k on Sun, 26 Dec 2021 11:54:28 +0200
Hystrix service fault tolerance processing: what is hystrix
return this.name + ":" + Thread.currentThread() . getName();
@Override
protected String getFallback() {
return"failed";
}
}
After re executing the calling code, you can find that the returned content is "failed", which proves that fallback has been triggered.
# 3, Semaphore policy configuration
The semaphore policy configurat ...
Added by Neville1985 on Sun, 26 Dec 2021 10:24:51 +0200
Java object-oriented encapsulation and inheritance, Java interview script
Both process oriented and object-oriented are a way of thinking in programming.
Process oriented programming is the process of thinking about "what should I do" and realizing it step by step. For example, when cleaning the company (cleaning the glass, sweeping the floor, mopping the floor, taking out the garbage, etc.), according to ...
Added by samyl on Sun, 26 Dec 2021 03:31:41 +0200
2021 latest Java interview questions (java basic interview questions)
1. What are the characteristics of object-oriented? Answer: object oriented features mainly include the following aspects:
Abstraction: abstraction is the process of summarizing the common characteristics of a class of objects to construct a class, including data abstraction and behavior abstraction. Abstraction only focuses on the attributes ...
Added by altumdesign on Sat, 25 Dec 2021 11:24:09 +0200
Hard currency for Android programmers, baidu Java interview questions
At the same time, it should be noted that we use testImplementation, which means that we can only use this framework in Java unit testing, which has no impact on our dependencies in Android.
The Android project using gradle in AS will automatically create Java unit tests and Android unit tests. The test code is in test and Android test resp ...
Added by gordo2dope on Sat, 25 Dec 2021 02:24:34 +0200