1. HashMap vs HashTable vs Concurrenthashmap1). Thread-safe:concurrenthashmap is Thread-safe, that is, the code can be accessed by single Thread at a time. While HashMap are not thread-safe.2). Synchronization method:hashmap can be synchronized by
In recent years, people have enthusiastically advocated and used design patterns , the fundamental reason is to achieve the reusability of code, increase the maintainability of code . The implementation of the design pattern follows some principles,
In this example, we will see how to use the java.net package utility to create a restful client that accesses the rest service. This is not the simplest way to create a restful client, of course, because you have to read the server-side response
source:http://hane00.blog.163.com/blog/static/1600615220126204446809/' \ R ' is a carriage return, ' \ n ' is a newline, the former causes the cursor to start at the beginning of the line, which causes the cursor to move down one grid. The usual
1) when = = on both sides of the object (String,integer ... ), both sides are more than the address2) when = = Both sides are basic type (int,float), both sides are value3) The default equals is the object's address, but the rewrite can be changed
Recently in reading to achieve GOF 23 design patterns, oneself a little bit of modeling tools according to their own understanding of the class diagram (is more in line with my personal thinking understanding, the individual feel more detailed than
The JVM internal code uses Unicode encoding. Common character encoding set: ASCII encoding, GBK encoding, Unicode encoding UTF-8 is just one way to implement Unicode; One of the biggest features of UTF-8 is that it is a variable-length coding method.
this keyword
think in Java: the This keyword can only be used inside a method, representing a reference to the "that object that called the method". Usually
this when written, it refers to this object or the current object.
Usage
I. Netty study MaterialsBook "Netty in Action Chinese version"11 Questions for Nettyhttp://news.cnblogs.com/n/205413/In layman NettyHttp://wenku.baidu.com/view/7765bc2db4daa58da0114a4c.htmlNetty Understanding and small testHttp://www.cnblogs.com/xd50
Requirements:
do a landing page, to achieve login , user name and password are admin, login success, with session record user name , logon failure, please indicate the reason for failure.
make a simple management system, implement
Three main features of Java object-oriented: encapsulation, inheritance, polymorphismEncapsulation and inheritance are almost always prepared for polymorphismFirst, the packageFirst, attributes can describe the characteristics of things, and methods
Java Objects-------------tool class Use1, Objects Class Introduction:Public final class Objectsextends ObjectThis class consists of the static utility methods for operating on Objects. These utilities include Null-safe or Null-tolerant methods for
By learning to fall in love with this language, in the Java learning process, you may encounter a variety of problems are not easy to solve, you should go to the professional forum to understand the relevant knowledge, books on the limited knowledge.
These days have been tangled up this problem, today read this article a bit of thinking, this and C + + function parameters for reference, pointers or a very big difference.When an object is passed as a parameter to a method, this method can change
Java-based Bubble sorting and java-based Bubble Sorting
I. Bubble Sorting:
Sort arrays by bubble sort
Ii. Basic concepts:
Compare two adjacent numbers in sequence, place decimal places in front, and place large numbers in the back. That is, in the
Design Mode: Singleton mode and Design Mode
The Singleton mode is a common mode in software development. Its main function is to ensure that there is always only one class instance object in the system.
There are two advantages:
1. for objects that
Common eclipse shortcut keys and debugging methods, and eclipse shortcut key debugging
Link: http://my.oschina.net/u/1054538/blog/741561
Common shortcut keys
Eclipse's most complete shortcut keys. Familiarity with shortcuts can help developers get
Use of git flow and gitflow
Introduction
Gitflow workflow defines a strict branch model around project release. Although it is more complex than Feature Branch Workflow, it also provides a solid framework for managing larger projects.
Compared
Use of four Java thread pools and four java threads
Java thread pool monitoring
Java provides four thread pools through Executors:NewCachedThreadPool creates a cache thread pool. If the thread pool length exceeds the processing requirement, Idle
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