I. The concept of generics (why generics are needed)?First, let's look at the following short code://import java.util.List; Public classGenerictest { Public Static voidMain (string[] args) {List List=NewArrayList (); List.add (Language); List.add
First, identifiersThe variable names, method names, class names, and object names in Java are identifiers, and the program requires identifiers to be uniquely identified in the process of writing the program. The naming rules for identifiers in Java
Design PatternsThe first thing to do is to explain what lazy loading is, delay loading is to wait until the real use of the time to create the instance, not to create.From the angle of speed and reaction time, non-delayed loading (also known as a
Using an enumeration collection in the project, I use an empty collection collections.emptylist () in collections to add an exception:Common collections are as follows:Private list Vacationcategorys = Collections.emptylist ();Reported errors are as
This time using AES symmetric encryption algorithm.The reason for using AES is that you can restore an encrypted string. The procedure is as follows: Public Staticstring Encode (string content) {Keygenerator keyGen; Try{KeyGen=
1. You need to be proficient in object-oriented analysis and Design (ooa/ood), involving patterns (GOF,J2EEDP), and integrated patterns. You should have a great understanding of UML, especially Class,object,interaction and Statediagrams.2. You need
1) heap and non-heap (non-heap) memoryAccording to the official statement, "Java virtual machines have a heap, the heap is a runtime data region, and all class instances and arrays of memory are allocated from here." The heap is created when the
about naming conventions: 1, literally. The name is meaningful and can express meaning. 2, avoid misleading, avoid giving misleading elements, such as xxxlist. 3, make a meaningful distinction, avoid using product,product info and productdata at
Introduction: Java is a single dispatch language that supports dual dispatchKnow that Java is to support late dynamic binding, but also know the visitor pattern, but the relationship between the two really do not know, and there is a static binding
Three technical architectures for 1.java?A.ee(Java 2 Platform Enterprise Edition) Enterprise Editionis a set of solutions for developing applications in an enterprise environment.The technology system includes servlet JSP, etc., mainly for Web
Many Java interviews, will ask about the Java garbage collection problem, mentions that garbage collection must involve the JVM memory management mechanism, the Java language execution efficiency has been ridiculed by C, C + + programmers, in fact,
Java as an object-oriented language. The following basic concepts are supported:
Polymorphic
Inherited
Packaging
Abstract
Class
Object
Instance
Method
Message parsing
In this section we focus on the
When it comes to regular expressions, there are a lot of common expressions on the web, but in fact, the average person is not willing to go to study, that is, to take the direct use of the line. However, in fact, there may be times when the actual
In this chapter we will discuss the initialization and loading of classes.Simply put, the class is loaded when the static member is accessed.Let's take a more complex example and then explain the order of loading and initialization.Package
Excerpt from Think in JavaSee a colleague wrote the Android program, comments like the Android source code, and then look at their own writing, they do not understand the comments. So take the time to read the Think in Java inside comments and
Longest valid parentheses method induction, longestparentheses
Leetcode: I will introduce three methods below:
Method 1: Search for matching without stacks
Create an array l2 to indicate matching, and then I start from 0, see (then record the value
Java-based POI export Excel
The Web framework is Struts2, And the jar package is as follows:ExportExcelAction. java
Import java. io. fileInputStream; import java. io. fileOutputStream; import java. io. inputStream; import org. apache. poi. hssf.
HQL Query Language Summary of hibernate
HQL is short for Hibernate Query Language. HQL syntax is similar to SQL syntax, but HQL is an Object-Oriented Query Language. Therefore,SQL operation objects are data objects such as data tables and columns.,
Conversion between string and json in java1. There are three methods to convert string to json: string directly to jsonString json = "{\" 2 \ ": \" efg \ ", \" 1 \": \ "abc \"} "; JSONObject json_test = JSONObject. fromObject (json); double
Eclipse: view the Spring source code and eclipsespring source code.Digress
For Spring frameworks, the point-to-point method is usually used. I have always wanted to study it in depth. I just recently saw Spring source code deep analysis, so I want
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