Summary of collection and generics collation in Java
There are three main types of collections used in Java: List, set, Map;
Implementation of the interface Collection are: List, Set;
List,The list interface implements the following three types of
1, the need for the jar package:
Commons-codec-1.4.jar
Commons-logging-1.0.4.jar
Hadoop-0.20.2-core.jar
Hbase-0.20.6.jar
Log4j-1.2.15.jar
Zookeeper-3.2.2.jar
2, the existing table structure:
1, table name: Scores
2, the row
Content outline.
The difference between PNG HashMap and Hashtable
First look at the Map interface diagram map diagram. png
The difference between Hashtable and hashmap.png list and map distinguishes list and Map.png collection and collections How
The number of daffodils refers to: a three-digit number, its number of cubic and equal to the number itself
//For example: 153 is a narcissus number.
//153 = 1*1*1 + 5*5*5 + 3*3*3 = 1 + + MB = 153 Public
class Shuixianhuashu {public
static void
I've seen it many times, search in different directions. Code
Import Java.util.Scanner;
public class Main {private static int step = 10000000;
private static int dir[][] = new int[][] {{ -1,0},{0,1},{1,0},{0,-1}};
private static char[]
Java ObjectInputStream and ObjectOutputStream
Overview
The stream can serialize a basic data and object, or read a basic data and object into the program. Which is to perform the serialization and deserialization operation
The class of the
Step one: Create an intermediary mediator
Public interface Mediator {
//create mediator public
void Createmediator ();
public void Workall ();
}
Step two: Establish a specific intermediary to implement a person
Public class Mymediator
/**
* Constructs a new {@code Thread} with no {@code Runnable} object and a
* Newly generated name. The new {@code Thread} would belong to the same
* {@code Threadgroup} as the {@code Thread} calling this constructor.
*
* @see Java.lang.ThreadGroup
*
Requirements: Do not write stored procedures in the database layer or call the database with its own method implementation, because the database may be MySQL or Oracle.
Core Recursive code:
/**
* @Description: Recursive enquiry mechanism
*
Java development is primarily based on HTTP.Reflection: Primarily for the development of tools and frameworks.Reflection is the re-abstraction of classes, and abstract classes through strings.Java class run: ClassLoader: Load to Virtual machine
What I learned this week is that I have further practiced the Java language .Cycle:Force End Command lineCTRL + CInfinite loop form for the FOR loop:for (;;) ()the infinite loop form of the while loop:while (true)w:for (int y=0;yis The name of the
MethodWhy should there be a way?* Improve the reusability of codeWhat is a method?* Block of code to complete specific functionsFormat of the method?Access modifier return value type method name (parameter type argument name) {Method code
The role of thisIf you have two objects of the same type, A and B, respectively, how can you make both objects call the same method?If there is only one method, how does this method know which object's properties are being called.In fact, the
Introduction to Java Memory Architecture 对于c c++ 开发,内存管理他们拥有最高的权利,复杂一个对象生命的开始到终结。 对于Java,程序员在虚拟机自动内存管理的机制帮助下,不再需要为每个new操作去配对free/delete代码,不容易出现内存溢出和泄漏问题,虚拟机管理内存是美好的。但如果出现内存溢出和泄漏,如果不知道虚拟机是如何使用内存的,那么排除错误是一件异常艰难的事。Run-time data regionThe Java
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