Java EE notes (13)

#单一职责原则A class does only one thing#开闭原则Expand Open, modify the source closed#动态代理1 interface-based approach for the dynamic agent of the JDK2 class-based approach to Cglib Proxy#SSH整合1.Spring (Container)1> Importing Jar Packages2> to test if spring

"Java Daily question" 20161212

Package Dec2016;     public class Ques1212 {public static void main (string[] args) {System.out.println (10.00-9.60); }  }today's question:what is the output of the main program? (Click on the "Java Daily question" 20161212 "to view the 20161209

Java Multithreaded Learning Notes (i)--compute-intensive tasks

Recently looking at "Java Virtual machine concurrency Programming", here to record some important stuff.Determine the number of threads:1. Get the number of processor cores available on the system: int numofcores = Runtime.getruntime ().

Java gets a date between two dates

1, pre-demand, two dates, we call him StartDate and EndDate, and then get to two dates between the date/*** Get a date between two dates *@paramStart Starting Date *@paramEnd Date *@returnDate Collection*/PrivateListgetbetweendates (date start, date

Java reads Excel normal XLS

Package com.sun.test;Import Java.io.BufferedInputStream;Import Java.io.File;Import Java.io.FileInputStream;Import java.io.FileNotFoundException;Import java.io.IOException;Import Java.text.DecimalFormat;Import Java.text.SimpleDateFormat;Import

Java Polymorphism (i)

Package test05;public class Duotai_test {/*** One object, multiple forms* wqq→student, Worker, Friend1), an object, multiple forms (types).The same object, in different situations, shows different roles.Different roles, can achieve different

Basic knowledge of Java ignored (iv)

Java IO (not the general importance)54. Stream in IO: Byte stream (InputStream, outputstream), character stream (Reader, Writer), conversion stream (InputStreamReader, outputstreamwriter), compressed stream (zipxxx (), Pipe flow (PipedInputStream,

JAVA: Reading Excel from POI

POI is an Apache open source jar package that can be found by searching the Java POI and downloading the development package.Features that are included:Can read excel2003,2007,2010 and so on.To read the excel2007/2010 code: Public Static

The use of the "turn" java.util.Arrays.asList

DK 1.4 Defines the java.util.Arrays.asList, the function parameter is object[]. therefore, aslist () in 1.4 does not support arrays of primitive types as Arguments.In JDK 1.5, the definition of java.util.Arrays.asList, the function parameter is

Java environment configuration in Windows, tomcat installation, javatomcat

Java environment configuration in Windows, tomcat installation, javatomcat Problem description: Java and tomcat are the basis for Java web-related projects under Windows. Here we will record the configuration of the Java environment and the

[Java daily question] 20161215, java20161215

[Java daily question] 20161215, java20161215 Package Dec2016; public class Ques1215 {static final int num1 = 2; static final int num2 = 3; static int num3 = 2; static int num4 = 3; public static void main (String [] args) {int result1 = num1 * num2;

Android clears various data in the app. android clears the app

Android clears various data in the app. android clears the app Public class DataCleanManager {/**** Clear the internal cache of the application (/data/com. xxx. xxx/cache )**** @ Param context*/Public static void cleanInternalCache (Context context )

Spring bean custom naming policy, springbean

Spring bean custom naming policy, springbean You can directly specify a path for spring to scan classes containing annotations. If the name-generator attribute is not specified, the default naming policy is lowercase for the

Activiti workflow web process designer integrates video tutorials SSM and independent deployment, activitissm

Activiti workflow web process designer integrates video tutorials SSM and independent deployment, activitissm This video is an integrated video tutorial for the activiti workflow web process designer. Integrate Acitiviti online process designer

Struts2 Struts2-2.5.5 Interceptor, struts2interceptor

Struts2 Struts2-2.5.5 Interceptor, struts2interceptor The Struts2-2.5.5 version is the latest version so far, compared to the previous version 2.3 and later versions, the new version has changed a lot. All right, go code! Basic jar package: Core

JVM tuning summary, jvm Tuning

JVM tuning summary, jvm Tuning   Heap size settingsThe maximum heap size in JVM has three restrictions: the data model (32-BT or 64-bit) of the relevant operating system; the available virtual memory limit of the system; and the available physical

KMP algorithm, kmp

KMP algorithm, kmp The KMP algorithm is the most classic algorithm in string mode matching. It was originally explained in the data structure of the sophomore year, but only remembered the principle, but did not know the code implementation, today,

System Management commands, linux system management commands

System Management commands, linux system management commands Stat displays information about the specified file, which is more than the ls command. Cd/home/itcast Stat familyA Who displays online login users Hostname display Host Name Uname:

Java connection to the database

Java connection to the database A few notes about connecting Java to the database 1. connect java to the Oracle database Use the following code to perform three steps:1. Download The ojdbc. jar package and import it to the project. Appendix:

General methods for java Generic Design and general java Generic Design

General methods for java Generic Design and general java Generic Design Generics are new features of Java SE 1.5. The nature of generics is parameterized, that is, the Data Type operated is specified as a parameter. therefore, we can use generics

Total Pages: 6206 1 .... 5778 5779 5780 5781 5782 .... 6206 Go to: GO

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.