JDBC (full name: Java data Base Connectivity) is a Java database connection short, providing the ability to connect to various databasesThe main features of the JDBC API are:
Establish a connection to the database
Execute SQL statement
First, the Java keywordThe Java keyword is a word that is given a special meaning in the Java language.A) keywords to define the data typeclass interface byte short int longfloat double char boolean void b) keywords to define data type
byte b1=3,b2=4,b;b= (Byte) (B1+B2); The B=B1+B2 is wrong and may lose precision. B is a byte type and B1+B2 is an int. b=3+4; System.out.println (b); byte by = (byte) 130; by=130 errors can occur, and the accuracy may be lost. 130 is of type int,
There is no length () method in the array in Java, so the lengths of the array can be used in the array.int[] arr={1,2,3,4,5};intlength=arr.length;//求数组的长度----------------------------------------------------------------------------------------String
a thread object has to undergo 5 states during its life cycle . New status (New) When a thread object is created with the new keyword, the thread object is in a new state. The newly-emerging thread has its own memory space, which is entered in a
11th Chapter exception, assertion, log, debug
Handling Errors
Catching exceptions
Tips for using exception mechanisms
Using assertions
Log
Test technique
GUI Programming Troubleshooting Tips
Using the debugger
Recently, the service-side protocol to be tested for the project was developed using the Java Netty Framework, while the transferred business data was serialized using Google Protobuf and then communicated to the client via TCP traffic. This time
The following is a small instance, and the comments are clear but sufficient to illustrate the problem.1. Instance Code1 Public classTestmain {2 3 Public StaticString project_name = "/test/";4 Public StaticString file_name =
Original works, can be reproduced, but please mark the source address: http://www.cnblogs.com/V1haoge/p/7136575.html1. Calendar overviewJava officially recommends using calendar to replace the use of date, the calendar and date can be freely
This article mainly introduces the 5 types of Web servers common in Java, they are Tomcat, Resin, JBoss, WebSphere, WebLogic, the need for friends can refer to the followingA Web server is a container for running and publishing web apps, and only
I used to use date to intercept, but the history of all the scenes are suitable, or the efficiency can not meet, or splicing extra trouble. It's better to be able to use Java's methods to achieve this. Because the cultural differences between China
OverviewThe MAT (Memory Analyzer Tool) is a Java Heaper parser that can be used to analyze memory leaks and reduce memory consumption. Analyze the memory used by/DEV/ASHMEM/DALVIK-HEAP (deleted) in the process Showmap. You can refer to the article I
Class fu{int a=2;Fu () {System.out.println ("Fu Run");}}Class Zi extends fu{Zi () {System.out.println ("Zi Run");}}public class Copy {public static void Main (string[] args) {Zi Zi = new Zi ();System.out.println (ZI.A);}}Run the result is Fu Run, Zi
When it comes to synchronization, it's about asynchrony, when it comes to synchronous asynchrony, it's about multithreading.The reason is multi-threading, because it is better to do the control of resources, distribution, but also to make the user
1 Public classCopy3 {2 3 Public Static voidMain (string[] args) {4 //constructing an instance of5StringBuffer Strbu =NewStringBuffer ("Hello world\t");6 Char[] a = {' L ', ' o ', ' y ', ' o ', ' u '};7 //Calling Methods8
(written in the front: the seriously nonsense of a brick-and-tile worker who hasn't started)Introduction: Recently done in the project, need to give the docking party to provide a public interface, according to the other side of the incoming XML
Interface Isolation principle Interface segregation Principle Defined:
The client should not rely on interfaces it does not need
Dependencies between classes should be based on the smallest interface
We can summarize these two
The original definition of the dependency inversion principle (dependence inversion Principle,dip):
High-level modules should not rely on the underlying modules, both should rely on their abstraction;
Abstraction should not depend on
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