To configure JDK environment variables under Windows XP:1. Install the JDK, the installation process can customize the installation directory and other information, such as our choice of installation directory for d:/java/jdk1.5.0_08;
2. after the
Copy Code code as follows:
Package me.xuzs.sso.test;
Import java.net.InetAddress;Import Java.net.NetworkInterface;Import java.net.SocketException;Import java.util.Enumeration;
public class Internettest {
public static void Main (string[]
Run-time polymorphism is one of the most powerful mechanisms for object-oriented programming code reuse, and dynamic concepts can be said to be "an interface, multiple methods". The basis of Java implementation Run-time polymorphism is dynamic
1. Creating objects
For string Direct Constants in Java programs, the JVM uses a string pool to hold them. When a direct constant of a string is used for the first time, the JVM puts it in a string pool for caching. In general, string objects in a
Enumeration features
1. Defining an enumeration class with an enum inherits the Java.lang.Enum class by default, rather than inheriting the object class. Where the Java.lang.Enum class implements the Java.lang.Serializable and java.lang.Comparable
Copy Code code as follows:
/**
* Get the day before the appointed date
* @param specifiedday
* @return
* @throws Exception
*/
public static string Getspecifieddaybefore (String specifiedday) {
SimpleDateFormat SimpleDateFormat = new
Recompiling a JSP does not need to restart the service period, but the class requires it.So you need to set::Add the following sentence to the Weblogic.xml file (red mark)-1ccbrootBut the disadvantage is that every time you reload all the servlet
The date class evolved from Java Development Kit (JDK) 1.0, when it contained only a few ways to get or set the various parts of a date's data, such as month, day, and year. These methods have now been criticized and moved to the Calendar class,
One, single-threaded transformation for multithreading is also a technical work
As we can see in the mouse Uncle's blog, the original is a single-threaded application, "later, our program performance problems, so we need to become multithreaded, so,
Let's find out what a database connection pool is.The idea of database connection pooling is very simple, storing database connections as objects in a vector object, and once the database connection is established, the connections can be shared by
Login Registration Small Code, will learn some of the small knowledge fused together for use, deepen the impression. In this case, if there are no details of the comments, see other blogs.
Function Introduction: Simple Login registration system,
In development, we often use database connection pool, such as DBCP database connection pool, this chapter will explain the Java Connection DBCP Database Library connection pool simple use.Development tools MYECLIPSE2014
1, first create a Web
If you don't say more, look at the sample code directly below
Specific code:
Dayofweek4birthday.java package Com.gua;
Import Java.util.Calendar;
Import Java.util.GregorianCalendar;
Import java.io.*;
Import static java.lang.System.out;
/** *
First, File upload overview
To implement the file upload function in Web development, two steps are required:
1, add the upload entry in the Web page
2, in the servlet read file upload data, and save to
A timer has two modes of performing a task, the most commonly used is schedule, which can perform tasks in two ways: 1: At a certain time (Data), 2: After a certain time (int delay). Either way, you can specify how often the task executes. See a
Learn JSP so long time, do the project also has seven or eight, can all the project is the user login directly to its own permissions of the page, or show access to the page link. Use this approach to control access rights naively. Never thought
Hashtables provides a useful way to maximize the performance of your application.Hashtables (hash table) is not a new concept in the field of computers. They are used to speed up the processing speed of the computer, with today's standards to deal
Java Filter mode (Filter/criteria pattern)
Filter pattern or Standard mode (criteria pattern) is a design pattern that allows developers to filter a set of objects using different criteria and connect them in a decoupled way by logical operation.
The following code is a tool class
Package com.imooc.reflect;
Import Java.lang.reflect.Method; public class Classutil {public static void Printclassmessage (Object obj) {//To get information about the class, first get the class type class C
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