Object-oriented and process-oriented:Object-oriented is relative to process-oriented, the process emphasizes the function behavior, object-oriented is to encapsulate the process into objects, emphasize the function of the object, object-oriented is
Class starts from being loaded into the virtual machine memory, and its entire life cycle includes: Load (Loading)-->> validation (verification)-->> Preparation (preparation)-->>, until the memory is unloaded Parsing (Resolution)-->> initialization (
1 //1, as long as the output results can be used the following methods:2 DoubleX1 = 0.026;3System.out.println (String.Format ("%.2f", X1));4 //Results: 0.035 //2. Using Data conversion (4 methods)6 //programme One:7Get_double = (Double) (Math.Round (
Synchronized: Synchronization (lock), can be decorated code blocks and methods, the modified code blocks and methods once accessed by a thread, it is directly locked, other threads will not be able to accessThe synchronous lock object of a
1. What do you think is the most important process in the project?The analysis, design phase to find the priority of progress2. If you are given a team of 4-6 people, how to assign?Pick a skilled person as my substitute. The other person distributes
Java string Explanationpublic class Stringpooltest {public static void Main (string[] args) {"After executing the line code, two objects are generated in memory and the contents of both are ABC"The first object is in Stringpool, and the second
encodeURI will not encode the # and other special symbols, when the access address contains # and other special characters, will automatically delete the string after the #, resulting in a wrong page;Workaround: Use encodeuricomponent
The first contact class is in learning jdbc. Class.forName () is a static method of the class class that is used to manually load a class, such as a database driver.In fact, every Java class has or says a class instance object, and some tutorials
First, the basic knowledge of multithreading1.1 Introduction to processes and threadsHow the program runs on the interface 1.4 java Sync synchronized keywordsPlus synchronous Format:Synchronized ( requires an arbitrary object (lock) ) { code block
The problem will be similar to "Hello world!" into "Hello world!."problem idea : First cut the string and then regroup the stringCore codepublic void filter(String s){ String[] b = s.split("\\s+"); StringBuffer stringBuffer = new
Java Memory Model and java modelModel classification of basic concurrent programming
Two key issues to be addressed in concurrent programming are: how to communicate between threads and how to synchronize between threads.Communication
Communication
After the intermediate expression is converted, the intermediate expression is converted.
Ordinal expression1. The operands are directly written into the stack output stack.2. Before the operator is added to the stack, it is compared with the stack
Spring @ AfterReturning always returns null,
When learning Spring Aop, I encountered a problem when @ Around (surround notification) and @ AfterReturning (post notification) coexist.
@ AfterReturning returns null when the returned value of the
From scratch learn Java-5. Use conditional test for judgment, learn java-5
1. Use the if statement to test the most basic conditions;2. test whether a value is greater than or less than another value;3. test whether the two values are equal;4. Use
Maven and stsmaven in sts
Create a maven web Project
There are a lot of maven downloads and configurations on the Internet, so I will not talk about them here.
The following describes the errors that occur when a maven is created in sts.
Create a
[JavaEE]-interview Summary (unfinished, to be continued ·), javaee to be continued
I. Java Basics
1.1 object-oriented (encapsulation, inheritance, and polymorphism)
Access permission modifier (public, protect, default, private) scope;
Concepts
Average salary of 88java. If you want to switch to java, get on the bus quickly. Average salary of 2018java
The reason why many people choose to work is simple: either have money or be happy, of course, the vast majority of people are neither happy
Spring AOP and SpringAOP
AOP in Spring
In Spring, I am not familiar with the concept of AOP. Let me talk about my opinions.
AOP (Aspect-Oriented Programming) is a technology that implements unified maintenance of program functions by means of
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service