Before the company directly used in the database is used Ibatis, now to learn some JDBC programming, by the way compare with the Ibatis framework of the difference.One, use the steps:1, load driver.Class.forName ("Com.mysql.jdbj.Driver");2, use
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
ObjectiveThe previous article mainly describes the file character input stream filewriter, file character output stream filereader, file byte output stream fileoutputstream, file byte input stream FileInputStream, these are common flow classes. Of
1, MyBatis sqlsession get Mapperdao, there are two kinds of1.1, the use of independent frameworkGlobal configuration file (Sqlmapconfig.xml) +sqlsession Get method +mapperdaoSqlsession Get StatementString config= "Sqlmapconfig.xml"; Reader
Three basic features of class, object and object-oriented programming: inheritance, encapsulation, polymorphism.Classes are also cited by objects. The three major characteristics are also cited by the object.Organizing code, encapsulating
First, the experimental requirementsusing the class's static fields and constructors, we can track the number of objects created by a class. Write a class that can query it at any time " How many objects have you created?" ". Second, design ideas1,
GUI DevelopmentPreviously, the GUI program was written in Java using the Abstract Window Toolkit, AWT (abstract Windows Toolkit). Now use swing more. Swing can be seen as an improved version of AWT rather than a substitute for AWT, which is an
Write your own project, we want to deploy to other computers for others to access.First install the JDK, and Tomcat. Here my tomcat is free to install version, according to http://www.cnblogs.com/Joanna-Yan/p/4874231.html configuration is OK.1.
Please enter and run the following code to get what results ?Procedures and Results:Two, why the following code can not be compiled? Where did it go wrong?Procedures and Results:Conclusion: If a class provides a custom construction method, the
General classes and methods are for specific data types, when writing a class and method applicable to a variety of data types need to use generic programming, Java generic programming is similar to the template in C + +, that is, a parameterized
In practical application, the original code involved in multiple subsystems, re-design of the class, the original distributed in the source of the class structure and methods of re-assembly, the formation of a new, unified interface for the upper
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
1.Please enter and run the following code to get what results?public class test{public static void Main (String args[]) {Foo obj1=new foo ();Foo obj2=new foo (); System.out.println (OBJ1==OBJ2);}}Class Foo{int value=100;}Results:Cause: when "= =" is
1. The nature of the singleton pattern:Number of control instances ( to conserve resources )2. Some ideas embodied in the Singleton model:(1) Delay load (lazy load): lazy Type(2) Cache: a hungry man type3. The variant of the singleton mode is used :
Java Field Initialization rule:Java field Initialization law: Variables of all classes are initialized to NULL by default, such as String A; Integer b;The original data type of the numeric class is initialized to 0 by default, such as int A; Short B;
Well, we always like to customize some nouns, where "label scope" means that the scope of a variable is only within the tag, and the value is not obtained outside the label.The effect of labeling requirements is as follows:JSP page:... column name:
Common encoding formats
Eclipse commonly used encoding formats include: US-ASCII, UTF-16, UTF-8, GBK and so on.
Post a lecture on the pretty good link: http://www.qianxingzhem.com/post-1499.html
Public class javatest {public static void main (String
JVM principle and optimization, and JVM principle Optimization
The jvmjob principle and special point are that the operating system is installed with jvmthrough jdk's java.exe, and the following four steps are used to complete the JVM environment.
1.
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
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