Java --- 25 --- Collection framework common methods, java --- 25 --- common
Collection class
Why does a collection class appear?
Object-oriented language (OSS) is used to display objects. To facilitate operations on multiple objects, OSS stores objects. A set of objects is the most common way to store objects.
What is the difference between containers of arrays
When Java 1.0 was just appearing, it included a class library for basic GUI programming, which Sun called the Abstract Window Toolbox (abstract Windows Toolkit, AWT).In 1996, Netscape created a GUI library called the IFC (Internet Foundation Class). Sun worked with Netscape to refine this approach by creating a user interface library called swing.Swing does not completely replace AWT, but is based on the AWT architecture. Swing simply provides a more
, have you tried them? If you have tried it, which one do you like better? Which one do you not like?
He has experimented with webwork,jsf,wicket. He likes the simplicity of webwork, but does not like its template mode (tag's template, should), it also does not provide component encapsulation. He thinks JSF's tool support is very appealing. Wicket's pure Java implementation is good, but XML configuration sucks.
4. What will be the future of your
Java underlying technology series-thread pool framework, java underlying
I. Thread Pool Structure
Ii. Example
Define thread Interface
Public class MyThread extends Thread {@ OverridePublicvoid run (){System. out. println (Thread. currentThread (). getName () + "executing ");}}
1: newSingleThreadExecutor
ExecutorService pool = Executors. newSingleThreadExecutor
can close the program and the next time you start, from the previously crawled URL to continue to crawl
To specify a path, the. Urls.txt and. Cursor.txt Two files are established
Redisscheduler
Use Redis to save the crawl queue for multiple machines to simultaneously crawl together
Need to install and start Redis
You can define the strategy of the de-weight separately
Hashsetduplicateremover
Use HashSet to remove weight and occup
Java framework --- hibernate connection pool, java --- hibernate
Hibernate supports third-party connection pools. the officially recommended connection pools are C3P0, Proxool, and DBCP. Note the following three points when configuring the connection pool:1. Apche's DBCP is supported in Hibernate2, but it is no longer recommended in Hibernate3. The official expla
Java framework --- spring dependency injection, java --- spring
There are four spring dependency injection methods.
Constructor Injection
Property Injection
Factory Injection
Annotation Injection
An example is provided below:
User.java
package com.bjsxt.model;public class User { private String username; private String password; public User(){} p
TenV.addelement ("AAA"); OneV.addelement ("AAA"); AV.addelement ("abc")); -V.addelement ("CCC"); - the //Traverse - for(Enumeration en =v.elements (); en.hasmoreelements ();) { - System.out.println (En.nextelement ()); - } + - for(Iterator it =v.iterator (); It.hasnext ();) { + System.out.println (It.next ()); A } at } -}Enumeration: It is the predecessor of iterator and can also traverse the collection container.However, b
Java from the birth to the present, all the way soaring, can be said red all over the world, red to purple. With the popularity of Java, many Java frameworks have been born:Spring, WebWork, Struts, HIbernate, Jdiy, Jfinal, Quartz, welocity, IBATIS, Compiere erp CRMSpring Framework "
Author: Jiangnan Baiyi
A piece of gossip today, when Asp.net 2.0 and the rails system ror/Django/turbogears were both cracked, the Java Web Framework's big guys finally saw the wolf. They sat down and ate a pack, start to discuss cooperation.The message is displayed on the blog of Dion almaer, TSS editor.Java Web alignment GroupIndeed, the lineup was booming, with 36 member members, and most of the bosses on the rivers and lakes had arrived. Yahoo g
Java Unit Test Framework JUnitJUnit is a unit test framework for the Java language. It was founded by Kent Beck and Erich Gamma, and gradually became the most successful of the Xunit family of Sunit from Kentbeck. JUnit has its own JUnit expansion biosphere. Most Java develo
The current popular Java Enterprise Application System framework is diverse, in order to enable developers to choose the system architecture to improve the development efficiency of Java Enterprise Application, first of all, based on EJB and the more popular framework based on POJOs, respectively, and then to these fra
Below I will summarize some of the Java frameworks and open-source projects for you, so that you can have a certain understanding of the Java frameworks in general.Spring framework [Java open-source Jee framework]Spring is a powerful fra
What is the Spring framework?Spring is the most popular application development framework for Enterprise Java. Millions of developers around the world use the Spring framework to create high-performance, easily testable, reusable code.
The spring framework is an open source
multi-language support of the application system).SpringSpring is a lightweight Java EE application framework.The core of spring is a lightweight container (container) that implements the IOC (inversion of Control) mode container, and the goal of spring is to implement a full-fledged integration framework that implements a combination of multiple sub-frameworks in the spring
A collection of frames (1) concept of a set A collection of real life: a lot of things come together.A collection in mathematics: The totality of things that have a common attribute.collection Classes in Java: A tool class, like a container, that stores any number of objects with common attributes. (2) concept of Set frame With the concept of a collection, what is a collection framework? A collection
Getting started with Spring AOP and IOC containersIn the first installment of this three-part series that introduces the spring framework, you will begin to learn how to build lightweight, robust Java EE applications with spring technology. DeveloperWorks's regular contributor, Naveen Balani, begins his three-part Spring Series by introducing the spring framework
4.1 Metaphor for development of Java EE
Make an analogy.
Now the development of Java-EE, just like the opposite of a person.
The outermost wear a windbreaker (HTML)
Wearing a suit in a windbreaker (Struts)
Wearing a vest in a suit (Spring)
Wearing a shirt (Hibernate) in a vest
The inside of the shirt is the real person (database)
All the clothes are made of cotton (
For the development of new software systems, object-oriented programming is undoubtedly the most widely used programming mode today. Because of the persistence demand of business data, relational database management system (RDBMS) has been widely used. An RDBMS uses a relational model, which differs from the domain object model in a software system. When developing software systems using object-oriented programming languages and using RDBMS to persist data, the data persistence
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.