/**manipulating databases*/public class BackupDB {Public String Backup () throws ioexception{String user = "root"; User name of the databaseString Password = "admin";//password for databaseString database = "Hrtweb";//the names of the databases to
The first technology blog, want to tidy up the lessons learned, to the Daniel exchange for advice, will be put up some of these two years to do things and study notes, experience and so on, improper place please everyone exchange correct!This is a
Proxy mode is a common Java design pattern, his characteristic is that the proxy class and the delegate class have the same interface, the proxy class is mainly responsible for the delegate class preprocessing messages, filtering messages,
. Record what you didn't know before.
variables
explain
Example
string
String, a section of text. To indicate that variables are strings, you should wrap them in quotation marks.
var
String inherits object, overriding the Equals method of object (the Equ method in the superclass is a judgment reference, which is the = = judgment), but the Equals method after the string rewrite is to judge the contentString a = "Hello World" and
Byte stream, character stream inheritance relationshipThe previous articles explain the use of byte stream, character stream, but Java provides users with a stream class far more than this, limited to the length of reason, no way one by one
Sun in the JAVA5, the Java thread of the class library to do a lot of expansion, in which the thread pool is one of the new features of JAVA5, in addition to the thread pool, there are many multi-threaded related content, for multi-threaded
What is the design pattern?Design patterns are a set of reusable, most known, categorized purposes, code design experience Summary. Design patterns are used to reuse code, make code easier for others to understand, and ensure code reliability. There
Memory partitioning for Java:1, register: The area that the CPU involves2. Local method Area: The area of the system-related code store3, Stack memory: storage is a local variable, the variable operation area at the end of the release, the speed is
1.Java field initialization rule:Run the code as shown belowPackage demo;public class Initializeblockdemo{/*** @param args*/public static void Main (string[] args){Initializeblockclass obj=new Initializeblockclass ();System.out.println
Many developers talk about Java multithreaded development, just stay on the new thread (...). Start () or directly using the executor framework, for thread management and control is not deep enough, read "Java Concurrency Programming practice" to
The recursive function calls itself, and through its own corresponding parameters, this calculation is performed during the layer until certain conditions are met, as long as the call is stopped.Characteristics of Recursive functions1. function to
Quick and efficient learning of Java programming online resources Top 20, javatop
Do you want to enhance your programming capabilities? Do you want to improve your Java programming skills and efficiency?
Don't worry. This article will provide more
Set up the SOLR environment and fully import MYSQL Data, and set up solr to import mysqlSOLR Preface
Because solr is used in the project, it took more than a week to study solr. I will not talk about various problems, especially during the two days
Learn how to hide java-1.3 from the ground up
In this section, let's talk about why we need to hide the specific implementation.
In general, programming is divided into the class creator and the class user. The Creator hides some fragile code and
Java-1.4 code reuse
In this section, we will discuss how to reuse code.
1. Why?
I am not going to elaborate on this. I can give you a few reasons for this.
I have summarized the following:
For the boss: reduce costs, shorten development time, and
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