Java with notes (iii)

Source: Internet
Author: User

Altogether three groups:
Vector (1.0)--arraylist (1.2)
HashTable (1.0)--hashmap (1.2)
StringBuffer (1.0)--stringbuilder (1.5) Extend Abstractstringbuilder

Checked exception
External resource problems, the JVM can foresee such as: the read file does not exist, the database connection is not established, etc.

Unchecked Exception (runtimeexcepeion)
Programmer coding Problem caused by

Responsibility chain Model


Handling Exceptions in blocks
Return takes the finally as the subject


Three-tier architecture:
User interface----、 GUI, page, presentation layer
|
|
Service---business logic layer
|
|
DAO---Data access layer (JDBC encapsulation)
DB----Database (SQL)


Dto--data Transfan Object (VO)---Data transfer objects, anemia objects: Only attributes have no behavior

Stored procedures in the database are not portable
CallableStatement extends Prestatement interface
CallableStatement Proc=null;
Proc=conn.preparecall ("{Call TESTB (?,?)}");
Proc.setint (1,8888);
Proc.setstring (2,type.varchar);

Java with notes (iii)

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.