This article is a summary of the experience of using Java reflection in the work, but also can be said to be some tips, learn new tricks, will be constantly updated. This article is not prepared to discuss the Java reflection mechanism, there are a
Write this blog is in order to record their own in the autumn recruit interview process and experience, yesterday evening written the Kingdee early batch of written examination. There are also the problems of the test, but more is the C language
/*
jdk1.5 later encapsulates synchronization and locks into objects.
and defines the action lock implicitly in the object.
Turns an implicit action into a display action.
Lock interface: A replacement for a synchronized code block or a
* * To change this template, choose Tools | Templates
* and open the template in the editor.
* *
package arthur.com.shipin;
/**
* Test this
* @author Arthur/public
class Thistest {
//object's name
private String name;
Thistest () {
1. Definition of array:
Arrays can be divided into one-dimensional arrays, two-dimensional arrays, and multidimensional arrays. The one-dimensional array is defined in the following two ways:
Type[] Arr_name;
Type arr_name[];
Two-dimensional
On the design of table structure
1. It is suggested that the field name is lowercase and if multiple words are separated by an underscore.2. It is recommended that each table have a unique primary key field, and the field name is an ID, and you can
Enter your own ID number, and this number to output their own birthday, month and year.
The code is as follows:
Package com.homework.lhh;
Import Java.util.Scanner;
public class Ex03 {
String year;
String month;
String Day;
static
TCP-oriented protocols are more secure, similar to phone calls, but less efficient. Its basic model is request-respond. In here we use the things Java has encapsulated socket class ServerSocket and socketsThe former is the server, the latter is the
This is a Java array instance that inserts a number into a sequential array. It's obvious that direct insertion is not going to work, because the Java array is fixed, invariant is not dynamically expandable, want to insert a number must re-create an
Spring Cloud (Edgware.release) uses Eureka as service management, and restful is prone to this error when jersey is used, because Spring-cloud-starter-eureka currently uses jersey 1.1, and Spring-boot-starter-jersey with the Jersey 2.x version,
Print a 99 multiplication table with a for loop
public class Multiply {public
static void Main (String args[]) {for
(int i = 1; I
Single Loop implementation
int j = 1;
for (int i = 1; I
SemaphoreControls the number of concurrent threads. Internal maintenance of a waiting queue, acquire the quota minus 1,release so that the quota plus 1.
Package Chapter01;
Import Java.util.concurrent.Semaphore; public class _01_run {/* * Multiple
socket is the use of TCP protocol, this protocol to send data before the connection will be established to ensure the reliability of the data,
The following is a template for client-and server-side socket communications:
Package demo;
Import
The time complexity of the merge sort is: Nlogn
The main is to use the two-way merge sort, that is, two ordered sets are merged into an ordered set.
Here's a recursive two-way merge sort algorithm that I wrote:
Package algorithm; public class
The first part goes into Java 1th Chapter into the Java Part II automatic memory management mechanism 2nd Chapter Java memory area and memory overflow exception 2.1 Overview 2.2 Run Time data region 2.2.1 Program Counter 2.2.2 Java Virtual machine
This is the exception that is generated when testing MyBatis supported engineering. The literal understanding is that the elements in the XML file are incomplete and the result set mapping class is found at the end. This is because the value of the
Buffer provides a class-directbuffer that can directly access the physical memory of the system. Directbuffer inherits from Bytebuffer,bytebuffer still allocates memory on the JVM heap, its maximum memory, limited by the maximum heap. The
转载请注明出处:http://blog.csdn.net/l1028386804/article/details/45440309
First, overview:
Provides an interface to create a series of related or interdependent objects without specifying their specific classes. second, why use
The factory pattern is our
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